#include <errno.h>
-#ifndef errno
+#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO
extern int errno;
#endif
here. These checks will be in the undefined state while configure
is running so be careful to test "defined (HAVE_DECL_*)". */
-#ifndef bcopy
-# ifdef HAVE_BCOPY
-# if defined (HAVE_DECL_BCOPY) && !HAVE_DECL_BCOPY
-extern void bcopy PARAMS ((const PTR, PTR, size_t));
-# endif
-# else /* ! HAVE_BCOPY */
-# define bcopy(src,dst,len) memmove((dst),(src),(len))
-# endif
-#endif
-
#if defined (HAVE_DECL_ATOF) && !HAVE_DECL_ATOF
extern double atof PARAMS ((const char *));
#endif
#endif
-
-/* Define a STRINGIFY macro that's right for ANSI or traditional C.
- Note: if the argument passed to STRINGIFY is itself a macro, eg
- #define foo bar, STRINGIFY(foo) will produce "foo", not "bar".
- Although the __STDC__ case could be made to expand this via a layer
- of indirection, the traditional C case can not do so. Therefore
- this behavior is not supported. */
-#ifndef STRINGIFY
-# ifdef HAVE_STRINGIZE
-# define STRINGIFY(STRING) #STRING
-# else
-# define STRINGIFY(STRING) "STRING"
-# endif
-#endif /* ! STRINGIFY */
-
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
/* Get libiberty declarations. */
#include "libiberty.h"
+#include "symcat.h"
/* Provide a default for the HOST_BIT_BUCKET.
This suffices for POSIX-like hosts. */
#pragma GCC poison malloc realloc calloc strdup
#endif /* IN_GCC */
-/* Note: not all uses of `bcopy' and `index' (esp. variable names)
- have been eliminated. */
+/* Note: not all uses of the `index' token (e.g. variable names and
+ structure members) have been eliminated. */
+#undef bcopy
#undef bzero
#undef bcmp
#undef rindex
- #pragma GCC poison bzero bcmp rindex
+ #pragma GCC poison bcopy bzero bcmp rindex
#endif /* GCC >= 3.0 */