1 /* $NetBSD: lprefix.h,v 1.2 2015/02/02 14:03:05 lneto Exp $ */
4 ** Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp
5 ** Definitions for Lua code that must come before any other header file
6 ** See Copyright Notice in lua.h
15 ** Allows POSIX/XSI stuff
17 #if !defined(LUA_USE_C89) /* { */
19 #if !defined(_XOPEN_SOURCE)
20 #define _XOPEN_SOURCE 600
21 #elif _XOPEN_SOURCE == 0
22 #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
26 ** Allows manipulation of large files in gcc and some other compilers
28 #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
29 #define _LARGEFILE_SOURCE 1
30 #define _FILE_OFFSET_BITS 64
40 #if defined(_WIN32) /* { */
42 #if !defined(_CRT_SECURE_NO_WARNINGS)
43 #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */