native Lua  0.5.0-devel
Lua on the platform you use with the compiler you choose
lprefix.h
Go to the documentation of this file.
1 /*
2 ** $Id: lprefix.h $
3 ** Definitions for Lua code that must come before any other header file
4 ** See Copyright Notice in lua.h
5 */
6 
7 #ifndef lprefix_h
8 #define lprefix_h
9 
10 #include "_native_lua_config.h" /* native Lua */
11 
12 
13 /*
14 ** Allows POSIX/XSI stuff
15 */
16 #if !defined(LUA_USE_C89) /* { */
17 
18 #if !defined(_XOPEN_SOURCE)
19 #define _XOPEN_SOURCE 600
20 #elif _XOPEN_SOURCE == 0
21 #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
22 #endif
23 
24 /*
25 ** Allows manipulation of large files in gcc and some other compilers
26 */
27 #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
28 #define _LARGEFILE_SOURCE 1
29 #define _FILE_OFFSET_BITS 64
30 #endif
31 
32 #endif /* } */
33 
34 
35 /*
36 ** Windows stuff
37 */
38 #if defined(_WIN32) /* { */
39 
40 #if !defined(_CRT_SECURE_NO_WARNINGS)
41 #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */
42 #endif
43 
44 #endif /* } */
45 
46 #endif
_native_lua_config.h
native Lua configuration file