diff options
author | Andreas Schwab <schwab@suse.de> | 2003-05-24 19:28:34 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2003-05-24 19:28:34 +0000 |
commit | 4e05abbe6f09359009110c4cfca8c2adfec610ff (patch) | |
tree | 829d9a37a1415bf5fadf993d67695345e7ccd169 /configure.in | |
parent | 25d887f06f28098a46c14e849c92ff156ff4e1d4 (diff) | |
download | emacs-4e05abbe6f09359009110c4cfca8c2adfec610ff.tar.gz |
(AH_BOTTOM) [MAC_OSX]: Do not redefine bcopy,
bzero, and bcmp.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 23 |
1 files 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 */ |