mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-14 19:03:20 +00:00
Added directory scanning example, and enabled posix routines in Lua for unix environment
This commit is contained in:
1 parent
78c994f7cc
commit
74711c686f
2 files changed
+20
-2
No files matched your search
+5
-2
@@ -18,6 +18,7 @@
|
||||
** ===================================================================
|
||||
*/
|
||||
|
||||
#define LUA_COMPAT_ALL
|
||||
|
||||
/*
|
||||
@@ LUA_ANSI controls the use of non-ansi features.
|
||||
@@ -38,8 +39,6 @@
|
||||
#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#if defined(LUA_USE_LINUX)
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
|
||||
@@ -59,6 +58,10 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__posix) || defined(__linux) || \
|
||||
defined(__unix) || defined(__APPLE__)
|
||||
#define LUA_USE_POSIX
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ LUA_USE_POSIX includes all functionality listed as X/Open System
|
||||
|
||||
Reference in new issue
Block a user