X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fobstack.h;h=67833e3f26e02a51635cab94083b21e32155d570;hb=279342da52719ba89de13f7c8b99660695b95080;hp=d5b856f6e36606a2d2c7247f06bbf4a267d2fb80;hpb=4589d52c7c039b9d9c9d7bec075f00c9d57ee6e1;p=gnulib.git diff --git a/lib/obstack.h b/lib/obstack.h index d5b856f6e..67833e3f2 100644 --- a/lib/obstack.h +++ b/lib/obstack.h @@ -122,12 +122,8 @@ extern "C" { #endif #ifndef __INT_TO_PTR -#if defined __STDC__ && __STDC__ -# define __INT_TO_PTR(P) ((void *) ((P) + (char *) 0)) -#else # define __INT_TO_PTR(P) ((P) + (char *) 0) #endif -#endif /* We need the type of the resulting object. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the @@ -585,7 +581,7 @@ __extension__ \ > (h)->chunk_limit - (char *) (h)->chunk) \ ? ((h)->next_free = (h)->chunk_limit) : 0), \ (h)->object_base = (h)->next_free, \ - __INT_TO_PTR ((h)->temp)) + (void *) __INT_TO_PTR ((h)->temp)) # if defined __STDC__ && __STDC__ # define obstack_free(h,obj) \