aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-11-15 11:43:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-11-15 11:43:32 -0300
commitee6a4cd1eca4fa736d108e1e0ac3cb9858f7a5ef (patch)
treecad617cdde64cdfc79907e23537d823fb1a56e12
parent8a4419b119ea9d03bb20b208587b0bbd6f473cdc (diff)
downloadlua-ee6a4cd1eca4fa736d108e1e0ac3cb9858f7a5ef.tar.gz
lua-ee6a4cd1eca4fa736d108e1e0ac3cb9858f7a5ef.tar.bz2
lua-ee6a4cd1eca4fa736d108e1e0ac3cb9858f7a5ef.zip
Ease slightly making Lua with C89
-rw-r--r--luaconf.h5
-rw-r--r--makefile4
2 files changed, 8 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index afc1b8b5..bd394650 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -87,6 +87,11 @@
87#endif 87#endif
88 88
89 89
90#if defined(LUA_USE_C89) && defined(LUA_USE_POSIX)
91#error "Posix is not compatible with C89"
92#endif
93
94
90/* 95/*
91@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits. 96@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits.
92*/ 97*/
diff --git a/makefile b/makefile
index b37fdb28..58de5ddb 100644
--- a/makefile
+++ b/makefile
@@ -69,7 +69,9 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) $(CWARNGCC)
69LOCAL = $(TESTS) $(CWARNS) 69LOCAL = $(TESTS) $(CWARNS)
70 70
71 71
72# enable Linux goodies 72# To enable Linux goodies, -DLUA_USE_LINUX
73# For C89, "-std=c89 -DLUA_USE_C89"
74# Note that Linux/Posix options are not compatible with C89
73MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX 75MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
74MYLDFLAGS= $(LOCAL) -Wl,-E 76MYLDFLAGS= $(LOCAL) -Wl,-E
75MYLIBS= -ldl 77MYLIBS= -ldl