ref: 1e1339467e03efad7d82db83765b733d440c4bdc
parent: 9e24c26468918e53a844394eaeae93ca2db29905
author: Anthony J. Bentley <[email protected]>
date: Thu Nov 6 16:39:36 EST 2014
Use POSIX 2001 as the base standard.
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
.POSIX:
-REALCFLAGS = ${CFLAGS} -Wall -Iinclude -Iinclude/asm/gameboy -g -std=c99
+REALCFLAGS = ${CFLAGS} -Wall -Iinclude -Iinclude/asm/gameboy -g -std=c99 \
+ -D_POSIX_C_SOURCE=200112L
# User-defined variables
PREFIX = /usr/local
--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -5,7 +5,6 @@
*
*/
-#define _XOPEN_SOURCE 500
#include <math.h>
#include <stdarg.h>
#include <stdbool.h>
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -5,7 +5,6 @@
*
*/
-#define _XOPEN_SOURCE 500
#include <assert.h>
#include <stdio.h>
#include <string.h>
--- a/src/asm/yaccprt1.y
+++ b/src/asm/yaccprt1.y
@@ -1,5 +1,4 @@
%{
-#define _XOPEN_SOURCE 500
#include <ctype.h>
#include <errno.h>
#include <stdbool.h>
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -14,7 +14,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _XOPEN_SOURCE 500
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
--- a/src/link/main.c
+++ b/src/link/main.c
@@ -1,4 +1,3 @@
-#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>