Commit 4e05abbe authored by Andreas Schwab's avatar Andreas Schwab

(AH_BOTTOM) [MAC_OSX]: Do not redefine bcopy,

bzero, and bcmp.
parent 25d887f0
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment