3 ** Definitions for Lua code that must come before any other header file
4 ** See Copyright Notice in lua.h
12 ** Allows POSIX/XSI stuff
14 #if !defined(LUA_USE_C89) /* { */
16 #if !defined(_XOPEN_SOURCE)
17 #define _XOPEN_SOURCE 600
18 #elif _XOPEN_SOURCE == 0
19 #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
23 ** Allows manipulation of large files in gcc and some other compilers
25 #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
26 #define _LARGEFILE_SOURCE 1
27 #define _FILE_OFFSET_BITS 64
36 #if defined(_WIN32) /* { */
38 #if !defined(_CRT_SECURE_NO_WARNINGS)
39 #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */