summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--fzy.c1
-rw-r--r--tty.c1
3 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 349ffc2..ce24825 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
VERSION=0.1beta
-CPPFLAGS=-DVERSION=\"${VERSION}\"
+CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE
CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic
PREFIX?=/usr/local
MANDIR?=$(PREFIX)/share/man
diff --git a/fzy.c b/fzy.c
index d71c95c..369d75c 100644
--- a/fzy.c
+++ b/fzy.c
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/tty.c b/tty.c
index 63ea698..ec32fd7 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>