#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */
/* assume autoconf's AC_C_BIGENDIAN has been run */
+/* if it hasn't, we assume (maybe falsely) the order is LITTLE ENDIAN */
#ifdef WORDS_BIGENDIAN
#define BYTE_ORDER BIG_ENDIAN
#else
#ifndef _AC_STRING_H
#define _AC_STRING_H
-#if STDC_HEADERS
+#ifdef STDC_HEADERS
# include <string.h>
#else
# ifndef HAVE_STRCHR
# endif
#endif
-#ifdef HAVE_MEMMOVE
-# define SAFEMEMCPY( d, s, n ) memmove((s), (d), (n))
+#if defined( HAVE_MEMMOVE )
+#define SAFEMEMCPY( d, s, n ) memmove((s), (d), (n))
+#elif defined( HAVE_BCOPY )
+#define SAFEMEMCPY( d, s, n ) bcopy((s), (d), (n))
+#elif defined( MACOS )
+#define SAFEMEMCPY( d, s, n ) BlockMoveData((Ptr)(s), (Ptr)(d), (n))
#else
-# ifdef HAVE_BCOPY
-# define SAFEMEMCPY( d, s, n ) bcopy((s), (d), (n))
-# else
-# ifdef MACOS
-# define SAFEMEMCPY( d, s, n ) BlockMoveData((Ptr)(s), (Ptr)(d), (n))
-# else
-# define SAFEMEMCPY( d, s, n ) memmove((s), (d), (n))
-# endif
-# endif
+/* nothing left but memcpy() */
+#define SAFEMEMCPY( d, s, n ) memcpy((s), (d), (n))
#endif
#endif /* _AC_STRING_H */