From 07078e75ec4448c5d99d6792569cbedcf205b2ad Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sat, 11 Oct 2008 21:18:30 +0000 Subject: [PATCH] - removed stdint.h include for VC compile (may still fail for VC6 because of long double) [r22765] --- ir/obstack/obstack.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c index 3df7b9896..f048ea573 100644 --- a/ir/obstack/obstack.c +++ b/ir/obstack/obstack.c @@ -30,12 +30,11 @@ #include /* Random thing to get __GNU_LIBRARY__. */ #include -#include /* 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; -- 2.20.1