projects
/
chise
/
concord.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8470f09
)
Define HAVE_STRNLEN when __DARWIN_C_LEVEL >= 200809L.
author
MORIOKA Tomohiko
<tomo.git@chise.org>
Sat, 11 Aug 2018 05:58:47 +0000
(14:58 +0900)
committer
MORIOKA Tomohiko
<tomo.git@chise.org>
Mon, 12 Dec 2022 07:18:40 +0000
(16:18 +0900)
sysdep.h
patch
|
blob
|
history
diff --git
a/sysdep.h
b/sysdep.h
index
202ed26
..
6ebff4d
100644
(file)
--- a/
sysdep.h
+++ b/
sysdep.h
@@
-7,6
+7,12
@@
#endif
#ifndef HAVE_STRNLEN
+#if defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L
+#define HAVE_STRNLEN 1
+#endif
+#endif
+
+#ifndef HAVE_STRNLEN
/* original in mysql, strings/strnlen.c.
uint strnlen(register const char *s, register uint maxlen)
{