diff options
Diffstat (limited to 'src/luaconf.h')
-rw-r--r-- | src/luaconf.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/luaconf.h b/src/luaconf.h index 4506b5fb..7278b3ef 100644 --- a/src/luaconf.h +++ b/src/luaconf.h | |||
@@ -9,19 +9,8 @@ | |||
9 | #include <limits.h> | 9 | #include <limits.h> |
10 | #include <stddef.h> | 10 | #include <stddef.h> |
11 | 11 | ||
12 | /* Try to determine supported features for a couple of standard platforms. */ | ||
13 | #if defined(_WIN32) | ||
14 | #define LUA_USE_WIN | ||
15 | #define LUA_DL_DLL | ||
16 | #elif defined(__linux__) || defined(__solaris__) || defined(__CYGWIN__) || \ | ||
17 | defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ | ||
18 | defined(__FreeBSD_kernel__) || (defined(__MACH__) && defined(__APPLE__)) | ||
19 | #define LUA_USE_POSIX | ||
20 | #define LUA_DL_DLOPEN | ||
21 | #endif | ||
22 | |||
23 | /* Default path for loading Lua and C modules with require(). */ | 12 | /* Default path for loading Lua and C modules with require(). */ |
24 | #ifdef LUA_USE_WIN | 13 | #if defined(_WIN32) |
25 | /* | 14 | /* |
26 | ** In Windows, any exclamation mark ('!') in the path is replaced by the | 15 | ** In Windows, any exclamation mark ('!') in the path is replaced by the |
27 | ** path of the directory of the executable file of the current process. | 16 | ** path of the directory of the executable file of the current process. |
@@ -58,7 +47,7 @@ | |||
58 | #define LUA_INIT "LUA_INIT" | 47 | #define LUA_INIT "LUA_INIT" |
59 | 48 | ||
60 | /* Special file system characters. */ | 49 | /* Special file system characters. */ |
61 | #ifdef LUA_USE_WIN | 50 | #if defined(_WIN32) |
62 | #define LUA_DIRSEP "\\" | 51 | #define LUA_DIRSEP "\\" |
63 | #else | 52 | #else |
64 | #define LUA_DIRSEP "/" | 53 | #define LUA_DIRSEP "/" |