From: Andreas Schwab Date: Sat, 24 May 2003 19:28:34 +0000 (+0000) Subject: (AH_BOTTOM) [MAC_OSX]: Do not redefine bcopy, X-Git-Tag: ttn-vms-21-2-B4~9994 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e05abbe6f09359009110c4cfca8c2adfec610ff;p=emacs.git (AH_BOTTOM) [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp. --- 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 */