summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua-test.c9
-rw-r--r--src/lua.mk2
2 files changed, 7 insertions, 4 deletions
diff --git a/src/lua-test.c b/src/lua-test.c
index f6f208f..efb9126 100644
--- a/src/lua-test.c
+++ b/src/lua-test.c
@@ -5,11 +5,14 @@
#include <lua.h>
#include <lauxlib.h>
-int main (int argc, char **argv) {
+int main(int argc, char *argv[])
+{
+ lua_State *L;
+
(void)argc;
(void)argv;
-
- lua_State *L = lua_open();
+
+ L = lua_open();
lua_close(L);
return 0;
}
diff --git a/src/lua.mk b/src/lua.mk
index 3e156fa..ef8f046 100644
--- a/src/lua.mk
+++ b/src/lua.mk
@@ -34,7 +34,7 @@ define $(PKG)_BUILD
install ranlib
'$(TARGET)-gcc' \
- -W -Wall -Werror -std=c99 -pedantic \
+ -W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \
-llua
endef