aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-26 12:27:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-26 12:27:56 -0300
commitc6c41e85b2992bba41cac23ac8bab32e29553e84 (patch)
treed48b427016446604131f730f016bceb90463777d /luaconf.h
parent87c930676f4aef54054024b73a245a24747aa163 (diff)
downloadlua-c6c41e85b2992bba41cac23ac8bab32e29553e84.tar.gz
lua-c6c41e85b2992bba41cac23ac8bab32e29553e84.tar.bz2
lua-c6c41e85b2992bba41cac23ac8bab32e29553e84.zip
more uniformity for defining system-dependent features
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/luaconf.h b/luaconf.h
index 39293e29..5b579bbf 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.188 2013/11/21 17:23:14 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.189 2014/01/27 13:34:32 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -41,24 +41,28 @@
41 41
42 42
43#if defined(LUA_USE_LINUX) 43#if defined(LUA_USE_LINUX)
44#define LUA_USE_C99
44#define LUA_USE_POSIX 45#define LUA_USE_POSIX
45#define LUA_USE_DLOPEN /* needs an extra library: -ldl */ 46#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
46#define LUA_USE_READLINE /* needs some extra libraries */ 47#define LUA_USE_READLINE /* needs some extra libraries */
47#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */
48#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
49#define LUA_USE_LONGLONG /* assume support for long long */
50#endif 48#endif
51 49
52#if defined(LUA_USE_MACOSX) 50#if defined(LUA_USE_MACOSX)
51#define LUA_USE_C99
53#define LUA_USE_POSIX 52#define LUA_USE_POSIX
54#define LUA_USE_DLOPEN /* does not need -ldl */ 53#define LUA_USE_DLOPEN /* does not need -ldl */
55#define LUA_USE_READLINE /* needs an extra library: -lreadline */ 54#define LUA_USE_READLINE /* needs an extra library: -lreadline */
56#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */
57#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
58#define LUA_USE_LONGLONG /* assume support for long long */
59#endif 55#endif
60 56
61 57
58/*
59@@ LUA_USE_C99 includes all functionality from C 99.
60** CHANGE it (define it) if your system is compatible.
61*/
62#if defined(LUA_USE_C99)
63#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
64#endif
65
62 66
63/* 67/*
64@@ LUA_USE_POSIX includes all functionality listed as X/Open System 68@@ LUA_USE_POSIX includes all functionality listed as X/Open System
@@ -66,11 +70,6 @@
66** CHANGE it (define it) if your system is XSI compatible. 70** CHANGE it (define it) if your system is XSI compatible.
67*/ 71*/
68#if defined(LUA_USE_POSIX) 72#if defined(LUA_USE_POSIX)
69#define LUA_USE_MKSTEMP
70#define LUA_USE_ISATTY
71#define LUA_USE_POPEN
72#define LUA_USE_ULONGJMP
73#define LUA_USE_GMTIME_R
74#endif 73#endif
75 74
76 75
@@ -381,7 +380,8 @@
381** The following definitions set the numeric types for Lua. 380** The following definitions set the numeric types for Lua.
382** Lua should work fine with 32-bit or 64-bit integers mixed with 381** Lua should work fine with 32-bit or 64-bit integers mixed with
383** 32-bit or 64-bit floats. The usual configurations are 64-bit 382** 32-bit or 64-bit floats. The usual configurations are 64-bit
384** integers and floats (the default) and 32-bit integers and floats. 383** integers and floats (the default) and 32-bit integers and floats
384** (for restricted hardware).
385** =================================================================== 385** ===================================================================
386*/ 386*/
387 387