basename,dirname test fix (feature test macro)
authornsz <nsz@port70.net>
Thu, 4 Aug 2011 22:17:33 +0000 (00:17 +0200)
committernsz <nsz@port70.net>
Thu, 4 Aug 2011 22:17:33 +0000 (00:17 +0200)
src/misc/basename.c
src/misc/dirname.c

index 016b397..33159fc 100644 (file)
@@ -1,8 +1,8 @@
-#define _GNU_SOURCE
-#include "test.h"
+#define _POSIX_C_SOURCE 200809L
 #include <stdlib.h>
 #include <string.h>
 #include <libgen.h>
+#include "test.h"
 
 static void t(char *p, char *b) {
        char *tmp = strdup(p);
index d77226a..50538b6 100644 (file)
@@ -1,8 +1,8 @@
-#define _GNU_SOURCE
-#include "test.h"
+#define _POSIX_C_SOURCE 200809L
 #include <stdlib.h>
 #include <string.h>
 #include <libgen.h>
+#include "test.h"
 
 static void t(char *p, char *b) {
        char *tmp = strdup(p);