Pass _XOPEN_SOURCE constant from macro config.

This commit is contained in:
Simon Lieb 2015-04-01 22:50:39 +02:00
parent df513b4f07
commit ec4e798496
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,7 @@ INCS =
LIBS =
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=500
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS}

1
slow.c
View file

@ -1,4 +1,3 @@
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>