diff options
author | Robin Gareus <robin@gareus.org> | 2017-11-29 04:22:26 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-11-29 12:06:42 +0100 |
commit | 44cf44883927c06fd0b8277c292716ea20be4eb9 (patch) | |
tree | 20cf5cb5e8ea56d1f1f4f4185de4b12583a1f68f /libs/lua/lua-5.3.4/lprefix.h | |
parent | 06ea56a2ce2fb8cf7e6803486292bf7b89d81de7 (diff) |
update to lua-5.3.4
Diffstat (limited to 'libs/lua/lua-5.3.4/lprefix.h')
-rw-r--r-- | libs/lua/lua-5.3.4/lprefix.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libs/lua/lua-5.3.4/lprefix.h b/libs/lua/lua-5.3.4/lprefix.h new file mode 100644 index 0000000000..02daa837f5 --- /dev/null +++ b/libs/lua/lua-5.3.4/lprefix.h @@ -0,0 +1,45 @@ +/* +** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ +** Definitions for Lua code that must come before any other header file +** See Copyright Notice in lua.h +*/ + +#ifndef lprefix_h +#define lprefix_h + + +/* +** Allows POSIX/XSI stuff +*/ +#if !defined(LUA_USE_C89) /* { */ + +#if !defined(_XOPEN_SOURCE) +#define _XOPEN_SOURCE 600 +#elif _XOPEN_SOURCE == 0 +#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ +#endif + +/* +** Allows manipulation of large files in gcc and some other compilers +*/ +#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) +#define _LARGEFILE_SOURCE 1 +#define _FILE_OFFSET_BITS 64 +#endif + +#endif /* } */ + + +/* +** Windows stuff +*/ +#if defined(_WIN32) /* { */ + +#if !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ +#endif + +#endif /* } */ + +#endif + |