]> pd.if.org Git - pdclib/blobdiff - functions/string/strdup.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / string / strdup.c
index d8792f30b72a98af858720b3c9a7c93a89630226..bbd1e93be1c0485f6b61be1b312f4b09c0540d17 100644 (file)
@@ -1,9 +1,13 @@
-/* [XSI] char* strdup(const char *)\r
+/* [XSI] char * strdup( const char * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    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
@@ -24,7 +28,7 @@ char *strdup(const char *s)
 #endif\r
 \r
 #ifdef TEST\r
-#include <_PDCLIB_test.h>\r
+#include "_PDCLIB_test.h"\r
 \r
 int main( void )\r
 {\r