summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-12 09:40:40 +0000
committerJim Meyering <jim@meyering.net>2003-07-12 09:40:40 +0000
commitd68aa4125b2d87a32a1883f3aa5b8d1f0ada2c54 (patch)
tree54829cfee56de716c56a6a7ed099c16ba4ba5329 /lib
parentba53da967558a0e692ec0f69b2def95bad59a795 (diff)
downloadcoreutils-d68aa4125b2d87a32a1883f3aa5b8d1f0ada2c54.tar.xz
Update from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/obstack.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/obstack.h b/lib/obstack.h
index 8ac5bd979..87bf2a343 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) \