From: Guus Sliepen Date: Sat, 21 Nov 2015 21:39:41 +0000 (+0100) Subject: Don't redefine strlcat()/strlcpy() on Mac OS X. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8df478e92ef290ea0fd07d8ca42c79941a46675;p=quix0rs-blobwars.git Don't redefine strlcat()/strlcpy() on Mac OS X. --- diff --git a/src/headers.h b/src/headers.h index a79edb2..2c5396d 100644 --- a/src/headers.h +++ b/src/headers.h @@ -56,7 +56,7 @@ extern DECLSPEC int SDLCALL SDL_GetGamma(float *red, float *green, float *blue); #define textdomain(x) while(false) #endif -#if !defined(OpenBSD) && !defined(FreeBSD) +#if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__) static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); } static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; } #endif