projects
/
quix0rs-blobwars.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff2f8b
)
Don't redefine strlcat()/strlcpy() on Mac OS X.
author
Guus Sliepen
<guus@debian.org>
Sat, 21 Nov 2015 21:39:41 +0000
(22:39 +0100)
committer
Guus Sliepen
<guus@debian.org>
Sat, 21 Nov 2015 21:39:41 +0000
(22:39 +0100)
src/headers.h
patch
|
blob
|
history
diff --git
a/src/headers.h
b/src/headers.h
index a79edb2cf27d0bb70fc5715fc669cb892b98d886..2c5396dae1071b1167a58377425fbcacb6541aec 100644
(file)
--- 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