From e2c11f9bc6be0eec20720824f5616c60d0806bee Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 30 Mar 2017 06:34:59 -0400 Subject: fix compile error for rhel5 --- core/plat/linux/prefix.mak | 2 +- core/src/luajit/xmake.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1