aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-03 13:12:44 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-03 13:12:44 -0200
commit4b839d7c72f2b3ae6f0a2c91316be0ab84d0f708 (patch)
tree5097123fc56aa46c962b4ff35267095df2e6aab0
parentc49edc45668b17d6fbd19edb2196af4ff8822636 (diff)
downloadlua-4b839d7c72f2b3ae6f0a2c91316be0ab84d0f708.tar.gz
lua-4b839d7c72f2b3ae6f0a2c91316be0ab84d0f708.tar.bz2
lua-4b839d7c72f2b3ae6f0a2c91316be0ab84d0f708.zip
Definitions for Lua code that must come before any other header file
-rw-r--r--lprefix.h39
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