2021-03-02 13:51:10 +00:00
|
|
|
#ifndef lprefix_h
|
|
|
|
#define lprefix_h
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Allows POSIX/XSI stuff
|
|
|
|
*/
|
2022-04-24 16:59:22 +00:00
|
|
|
#if !defined(LUA_USE_C89) /* { */
|
2021-03-02 13:51:10 +00:00
|
|
|
|
|
|
|
#if !defined(_XOPEN_SOURCE)
|
2022-04-24 16:59:22 +00:00
|
|
|
#define _XOPEN_SOURCE 600
|
2021-03-02 13:51:10 +00:00
|
|
|
#elif _XOPEN_SOURCE == 0
|
2022-04-24 16:59:22 +00:00
|
|
|
#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
|
2021-03-02 13:51:10 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Allows manipulation of large files in gcc and some other compilers
|
|
|
|
*/
|
|
|
|
#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
|
2022-04-24 16:59:22 +00:00
|
|
|
#define _LARGEFILE_SOURCE 1
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
2021-03-02 13:51:10 +00:00
|
|
|
#endif
|
|
|
|
|
2022-04-24 16:59:22 +00:00
|
|
|
#endif /* } */
|
2021-03-02 13:51:10 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
** Windows stuff
|
|
|
|
*/
|
2022-04-24 16:59:22 +00:00
|
|
|
#if defined(_WIN32) /* { */
|
2021-03-02 13:51:10 +00:00
|
|
|
|
|
|
|
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
2022-04-24 16:59:22 +00:00
|
|
|
#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */
|
2021-03-02 13:51:10 +00:00
|
|
|
#endif
|
|
|
|
|
2022-04-24 16:59:22 +00:00
|
|
|
#endif /* } */
|
2021-03-02 13:51:10 +00:00
|
|
|
|
|
|
|
#endif
|