Ease slightly making Lua with C89
This commit is contained in:
1 parent
8a4419b119
commit
ee6a4cd1ec
2 files changed
+8
-1
No files matched your search
@@ -87,6 +87,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(LUA_USE_C89) && defined(LUA_USE_POSIX)
|
||||||
|
#error "Posix is not compatible with C89"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits.
|
@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -69,7 +69,9 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) $(CWARNGCC)
|
|||||||
LOCAL = $(TESTS) $(CWARNS)
|
LOCAL = $(TESTS) $(CWARNS)
|
||||||
|
|
||||||
|
|
||||||
# enable Linux goodies
|
# To enable Linux goodies, -DLUA_USE_LINUX
|
||||||
|
# For C89, "-std=c89 -DLUA_USE_C89"
|
||||||
|
# Note that Linux/Posix options are not compatible with C89
|
||||||
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
|
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
|
||||||
MYLDFLAGS= $(LOCAL) -Wl,-E
|
MYLDFLAGS= $(LOCAL) -Wl,-E
|
||||||
MYLIBS= -ldl
|
MYLIBS= -ldl
|
||||||
|
|||||||
Reference in new issue
Block a user