Browse code

Move _GNU_SOURCE definition to makefile

John Hawthorn authored on 18/09/2014 03:23:20
Showing 3 changed files

  • Makefile index 349ffc2..ce24825 100644
  • fzy.c index d71c95c..369d75c 100644
  • tty.c index 63ea698..ec32fd7 100644
... ...
@@ -1,6 +1,6 @@
1 1
 VERSION=0.1beta
2 2
 
3
-CPPFLAGS=-DVERSION=\"${VERSION}\"
3
+CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE
4 4
 CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic
5 5
 PREFIX?=/usr/local
6 6
 MANDIR?=$(PREFIX)/share/man
... ...
@@ -1,4 +1,3 @@
1
-#define _GNU_SOURCE
2 1
 #include <stdio.h>
3 2
 #include <string.h>
4 3
 #include <stdlib.h>
... ...
@@ -1,4 +1,3 @@
1
-#define _GNU_SOURCE
2 1
 #include <stdio.h>
3 2
 #include <unistd.h>
4 3
 #include <fcntl.h>