summaryrefslogtreecommitdiff
path: root/gcc/obstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/obstack.h')
-rwxr-xr-xgcc/obstack.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/gcc/obstack.h b/gcc/obstack.h
index 09f1422..2fb012c 100755
--- a/gcc/obstack.h
+++ b/gcc/obstack.h
@@ -130,27 +130,12 @@ extern "C" {
available, include it and use ptrdiff_t. In traditional C, long is
the best that we can do. */
-#ifdef __PTRDIFF_TYPE__
-# define PTR_INT_TYPE __PTRDIFF_TYPE__
-#else
-# ifdef HAVE_STDDEF_H
-# include <stddef.h>
-# define PTR_INT_TYPE ptrdiff_t
-# else
-# define PTR_INT_TYPE long
-# endif
-#endif
-#if defined _LIBC || defined HAVE_STRING_H
-# include <string.h>
-# define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N))
-#else
-# ifdef memcpy
-# define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N))
-# else
-# define _obstack_memcpy(To, From, N) bcopy ((From), (To), (N))
-# endif
-#endif
+#include <stddef.h>
+#define PTR_INT_TYPE ptrdiff_t
+
+#include <string.h>
+#define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N))
struct _obstack_chunk /* Lives at front of each chunk. */
{