Browse files

Define _GNU_SOURCE just once, in the Makefile. Fixes: Issue #7

  • Loading branch information...
1 parent 89ad84b commit 3b69162a38132fbdd3be0213f1721a7500853b4f ec429 committed Jul 9, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −1 Makefile
  2. +0 −2 irc.h
  3. +0 −2 quirc.h
View
2 Makefile
@@ -2,7 +2,7 @@
CC := gcc
OPTFLAGS := -g
-CFLAGS := -Wall -Wextra -Werror -pedantic -std=gnu99 $(OPTFLAGS)
+CFLAGS := -Wall -Wextra -Werror -pedantic -std=gnu99 -D_GNU_SOURCE $(OPTFLAGS)
AWK := gawk
VERSION := `git describe --tags`
PREFIX := /usr/local
View
2 irc.h
@@ -8,8 +8,6 @@
irc: networking functions
*/
-#define _GNU_SOURCE // feature test macro
-
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
View
2 quirc.h
@@ -6,8 +6,6 @@
quirc.h: header for main source file (quirc.c)
*/
-#define _GNU_SOURCE // feature test macro
-
#include <stdio.h>
#include <string.h>
#include <unistd.h>

0 comments on commit 3b69162

Please sign in to comment.