diff options
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 12 |
1 files changed, 10 insertions, 2 deletions
| @@ -70,15 +70,19 @@ | |||
| 70 | #if defined(LUA_USE_LINUX) | 70 | #if defined(LUA_USE_LINUX) |
| 71 | #define LUA_USE_POSIX | 71 | #define LUA_USE_POSIX |
| 72 | #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ | 72 | #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ |
| 73 | #if !defined(LUA_READLINELIB) | ||
| 73 | #define LUA_READLINELIB "libreadline.so" | 74 | #define LUA_READLINELIB "libreadline.so" |
| 74 | #endif | 75 | #endif |
| 76 | #endif | ||
| 75 | 77 | ||
| 76 | 78 | ||
| 77 | #if defined(LUA_USE_MACOSX) | 79 | #if defined(LUA_USE_MACOSX) |
| 78 | #define LUA_USE_POSIX | 80 | #define LUA_USE_POSIX |
| 79 | #define LUA_USE_DLOPEN /* macOS does not need -ldl */ | 81 | #define LUA_USE_DLOPEN /* macOS does not need -ldl */ |
| 82 | #if !defined(LUA_READLINELIB) | ||
| 80 | #define LUA_READLINELIB "libedit.dylib" | 83 | #define LUA_READLINELIB "libedit.dylib" |
| 81 | #endif | 84 | #endif |
| 85 | #endif | ||
| 82 | 86 | ||
| 83 | 87 | ||
| 84 | #if defined(LUA_USE_IOS) | 88 | #if defined(LUA_USE_IOS) |
| @@ -339,14 +343,18 @@ | |||
| 339 | /* | 343 | /* |
| 340 | @@ LUA_COMPAT_GLOBAL avoids 'global' being a reserved word | 344 | @@ LUA_COMPAT_GLOBAL avoids 'global' being a reserved word |
| 341 | */ | 345 | */ |
| 342 | #define LUA_COMPAT_GLOBAL | 346 | #if !defined(LUA_COMPAT_GLOBAL) |
| 347 | #define LUA_COMPAT_GLOBAL 1 | ||
| 348 | #endif | ||
| 343 | 349 | ||
| 344 | 350 | ||
| 345 | /* | 351 | /* |
| 346 | @@ LUA_COMPAT_LOOPVAR makes for-loop control variables not read-only, | 352 | @@ LUA_COMPAT_LOOPVAR makes for-loop control variables not read-only, |
| 347 | ** as they were in previous versions. | 353 | ** as they were in previous versions. |
| 348 | */ | 354 | */ |
| 349 | /* #define LUA_COMPAT_LOOPVAR */ | 355 | #if !defined(LUA_COMPAT_LOOPVAR) |
| 356 | #define LUA_COMPAT_LOOPVAR 0 | ||
| 357 | #endif | ||
| 350 | 358 | ||
| 351 | 359 | ||
| 352 | /* | 360 | /* |
