Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 3b69162a38132fbdd3be0213f1721a7500853b4f 1 parent 89ad84b
ec429 authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.