summaryrefslogtreecommitdiffhomepage
path: root/ir/obstack
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2008-10-11 23:18:30 +0200
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2008-10-11 23:18:30 +0200
commit07078e75ec4448c5d99d6792569cbedcf205b2ad (patch)
tree94cf70041133587c53329f38561620844feaa7cd /ir/obstack
parent7ef676a9184d125c740cdca7acc91536dab0939c (diff)
- removed stdint.h include for VC compile (may still fail for VC6 because of long double)
[r22765]
Diffstat (limited to 'ir/obstack')
-rw-r--r--ir/obstack/obstack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c
index 3df7b98..f048ea5 100644
--- a/ir/obstack/obstack.c
+++ b/ir/obstack/obstack.c
@@ -30,12 +30,11 @@
#include <stdio.h> /* Random thing to get __GNU_LIBRARY__. */
#include <stddef.h>
-#include <stdint.h>
/* Determine default alignment. */
union fooround
{
- uintmax_t i;
+ unsigned i;
long double d;
void *p;
};
@@ -139,7 +138,7 @@ _obstack_begin (struct obstack *h,
chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size);
if (!chunk)
(*obstack_alloc_failed_handler) ();
- h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents,
+ h->next_free = h->object_base = __PTR_ALIGN((char *) chunk, chunk->contents,
alignment - 1);
h->chunk_limit = chunk->limit
= (char *) chunk + h->chunk_size;