Skip to content

Commit

Permalink
add _GNU_SOURCE to compiler directives
Browse files Browse the repository at this point in the history
Move the _GNU_SOURCE from common.h to CPPFLAGS so we can utilize GNU
extensions everywhere.
  • Loading branch information
andbof committed Dec 13, 2012
1 parent ee32af0 commit 8bb5e32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ MAINTAINERCLEANFILES = Makefile.in \

ACLOCAL_AMFLAGS = -I m4

AM_CPPFLAGS = -D_GNU_SOURCE
AM_CFLAGS = -g -O0 -Wall -Werror -Wformat -Wformat-security -Wformat-nonliteral -Wformat=2 -ftrapv -Wno-unused-variable -Wno-unused-parameter -Wtype-limits -fstack-protector-all -fno-strict-aliasing -Wno-format-y2k

TESTS = test/stringtree_test
Expand Down
4 changes: 0 additions & 4 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <stdlib.h>
#include <stdint.h>

/* Global compiler directives */

#define _GNU_SOURCE

/* Global struct definitions */

struct ulong_ptr {
Expand Down

0 comments on commit 8bb5e32

Please sign in to comment.