mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
2046c0d2ae
- Expand redbean UNIX module - Expand redbean documentation - Ensure Lua copyright is embedded in binary - Increase the PATH_MAX limit especially on NT - Use column major sorting for linenoise completions - Fix some suboptimalities in redbean's new UNIX API - Figured out right flags for Multics newline in raw mode
36 lines
664 B
C
36 lines
664 B
C
#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
|