diff options
| author | ruki <[email protected]> | 2017-03-30 06:34:59 -0400 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-30 06:34:59 -0400 |
| commit | e2c11f9bc6be0eec20720824f5616c60d0806bee (patch) | |
| tree | a03883c094035cf500da5fb08ca9496ca1348247 | |
| parent | e8c12f104555b049fc34befcfb347f0b6573f40d (diff) | |
fix compile error for rhel5
| -rw-r--r-- | core/plat/linux/prefix.mak | 2 | ||||
| -rw-r--r-- | core/src/luajit/xmake.lua | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/core/plat/linux/prefix.mak b/core/plat/linux/prefix.mak index 9432cf432..1a134a905 100644 --- a/core/plat/linux/prefix.mak +++ b/core/plat/linux/prefix.mak @@ -88,7 +88,7 @@ endif CFLAGS_RELEASE = CFLAGS_DEBUG = CFLAGS = \ - -std=c99 \ + -std=gnu99 \ -D_GNU_SOURCE=1 -D_REENTRANT \ -fno-math-errno diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua index a9b140959..33999711f 100644 --- a/core/src/luajit/xmake.lua +++ b/core/src/luajit/xmake.lua @@ -18,6 +18,8 @@ target("luajit") -- disable c99(/TP) for windows if is_plat("windows") then set_languages("c89") + else + set_languages("gnu99") end -- set the object files directory |
