mmenu: fix annoying __USE_GNU redef warnings
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 13 Dec 2015 21:29:38 +0000 (23:29 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 13 Dec 2015 21:29:38 +0000 (23:29 +0200)
minimenu/mmcache.c
minimenu/mmconf.c
minimenu/mmcustom_cats.c
minimenu/mmui.c

index 941aa74..b40e96b 100644 (file)
@@ -1,4 +1,5 @@
 
+#define __USE_GNU /* for strcasestr */
 #include <stdio.h> /* for FILE etc */
 #include <stdlib.h> /* for malloc */
 #include <unistd.h> /* for unlink */
@@ -7,7 +8,6 @@
 #include <sys/stat.h>
 #include <time.h> /* for time() */
 
-#define __USE_GNU /* for strcasestr */
 #include <string.h> /* for making ftw.h happy */
 
 #include <fcntl.h>
@@ -17,7 +17,6 @@
 #include "SDL_image.h"
 #include "SDL_rotozoom.h"
 
-#define __USE_GNU /* for strcasestr */
 #include <unistd.h> /* for unlink */
 #include <string.h> /* for making ftw.h happy */
 
index 2da4da8..f64675e 100644 (file)
@@ -1,7 +1,7 @@
 
+#define __USE_GNU /* for strndup */
 #include <stdio.h>
 #include <limits.h> /* for PATH_MAX */
-#define __USE_GNU /* for strndup */
 #include <string.h> /* for strdup */
 
 #include "SDL.h"
index 4c5a8a3..1cc5c65 100644 (file)
@@ -1,7 +1,7 @@
 
+#define __USE_GNU /* for strndup */
 #include <stdio.h>
 #include <limits.h> /* for PATH_MAX */
-#define __USE_GNU /* for strndup */
 #include <string.h> /* for strdup */
 #include <stdlib.h> /* getenv */
 
index 50e3324..abdd63b 100644 (file)
@@ -1,11 +1,11 @@
 
+#define __USE_GNU /* for strcasestr */
 #include <stdio.h> /* for FILE etc */
 #include <stdlib.h> /* for malloc */
 #include <unistd.h> /* for unlink */
 #include <limits.h> /* for PATH_MAX */
 #include <sys/types.h>
 #include <sys/stat.h>
-#define __USE_GNU /* for strcasestr */
 #include <string.h> /* for making ftw.h happy */
 #include <time.h>
 #include <ftw.h>