From 4e05abbe6f09359009110c4cfca8c2adfec610ff Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 24 May 2003 19:28:34 +0000 Subject: [PATCH] (AH_BOTTOM) [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp. --- configure.in | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/configure.in b/configure.in index 4326d27e139..ab08f35dabe 100644 --- a/configure.in +++ b/configure.in @@ -2854,17 +2854,20 @@ typedef unsigned size_t; # endif #endif +/* On Mac OS X, these macros are already defined in precompiled headers. */ +#ifndef MAC_OSX /* avoid deprecated functions */ -#ifdef HAVE_MEMCPY -# define bcopy(a,b,s) memcpy (b,a,s) -#endif -#ifdef HAVE_MEMSET -# define bzero(a,s) memset (a,0,s) -#endif -#ifdef HAVE_MEMCMP -# define BCMP memcmp -# define bcmp memcmp -#endif +# ifdef HAVE_MEMCPY +# define bcopy(a,b,s) memcpy (b,a,s) +# endif +# ifdef HAVE_MEMSET +# define bzero(a,s) memset (a,0,s) +# endif +# ifdef HAVE_MEMCMP +# define BCMP memcmp +# define bcmp memcmp +# endif +#endif /* MAC_OSX */ #endif /* EMACS_CONFIG_H */ -- 2.39.2