summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2015-11-13 16:49:49 +0800
committerTing-Wei Lan <lantw44@gmail.com>2015-11-13 16:49:49 +0800
commit274227ed441e941cbc07e3ba90497dbf73db5684 (patch)
tree92990074f19cb6d71447248aa1333ca03edc8a93 /src
parent5017c802e8aeda0d61715d2566f6a866311b63e3 (diff)
downloadcompiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.tar
compiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.tar.gz
compiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.tar.bz2
compiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.tar.lz
compiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.tar.xz
compiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.tar.zst
compiler2015-274227ed441e941cbc07e3ba90497dbf73db5684.zip
Enable POSIX extensions
Diffstat (limited to 'src')
-rw-r--r--src/ast.c4
-rw-r--r--src/draw.c3
-rw-r--r--src/main.c4
-rw-r--r--src/parser.y4
-rw-r--r--src/symbol-table.c4
5 files changed, 19 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index 7c35744..7d70a68 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/draw.c b/src/draw.c
index 82ef484..0ecc592 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -1,4 +1,7 @@
/* 2015/10 functions to support printGV() */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include "ast.h"
#include <assert.h>
diff --git a/src/main.c b/src/main.c
index 4b46032..e7ed754 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include "ast.h"
diff --git a/src/parser.y b/src/parser.y
index 1b164ca..128788d 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -1,4 +1,8 @@
%{
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/symbol-table.c b/src/symbol-table.c
index 090bdbe..2e18839 100644
--- a/src/symbol-table.c
+++ b/src/symbol-table.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>