diff options
Diffstat (limited to 'lprefix.h')
-rw-r--r-- | lprefix.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lprefix.h b/lprefix.h new file mode 100644 index 00000000..3f6fbd98 --- /dev/null +++ b/lprefix.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | ** $Id: $ | ||
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 | |||
11 | /* | ||
12 | ** Allows POSIX/XSI stuff | ||
13 | */ | ||
14 | #if !defined(_XOPEN_SOURCE) | ||
15 | #define _XOPEN_SOURCE 600 | ||
16 | #endif | ||
17 | |||
18 | /* | ||
19 | ** Allows manipulation of large files in gcc and some other compilers | ||
20 | */ | ||
21 | #if !defined(_FILE_OFFSET_BITS) | ||
22 | #define _LARGEFILE_SOURCE 1 | ||
23 | #define _FILE_OFFSET_BITS 64 | ||
24 | #endif | ||
25 | |||
26 | |||
27 | /* | ||
28 | ** Windows stuff | ||
29 | */ | ||
30 | #if defined(_WIN32) /* { */ | ||
31 | |||
32 | #if !defined(_CRT_SECURE_NO_WARNINGS) | ||
33 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ | ||
34 | #endif | ||
35 | |||
36 | #endif /* } */ | ||
37 | |||
38 | #endif | ||
39 | |||