]> pd.if.org Git - pdclib/commitdiff
RegTest gives warning about implicitly declared functions. Fixed.
authorMartin Baute <solar@rootdirectory.de>
Fri, 11 Mar 2016 06:46:09 +0000 (07:46 +0100)
committerMartin Baute <solar@rootdirectory.de>
Fri, 11 Mar 2016 06:46:09 +0000 (07:46 +0100)
functions/string/strdup.c
functions/string/strndup.c

index d8792f30b72a98af858720b3c9a7c93a89630226..9be484a623eb4e760f7dd7b395b8195191f76ea6 100644 (file)
@@ -4,6 +4,10 @@
    Permission is granted to use, modify, and / or redistribute at will.\r
 */\r
 \r
+#ifdef REGTEST\r
+#define _POSIX_C_SOURCE 200809L\r
+#endif\r
+\r
 #include <string.h>\r
 #include <stdlib.h>\r
 \r
index b96a86e86fd849baff544741e1ed016f2df929e6..15c44be27f23dc717acc718dd8dddb60f7e28bdf 100644 (file)
@@ -4,6 +4,10 @@
    Permission is granted to use, modify, and / or redistribute at will.\r
 */\r
 \r
+#ifdef REGTEST\r
+#define _POSIX_C_SOURCE 200809L\r
+#endif\r
+\r
 #include <string.h>\r
 #include <stdlib.h>\r
 \r