/*1** $Id: lprefix.h $2** Definitions for Lua code that must come before any other header file3** See Copyright Notice in lua.h4*/56#ifndef lprefix_h7#define lprefix_h8910/*11** Allows POSIX/XSI stuff12*/13#if !defined(LUA_USE_C89) /* { */1415#if !defined(_XOPEN_SOURCE)16#define _XOPEN_SOURCE 60017#elif _XOPEN_SOURCE == 018#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */19#endif2021/*22** Allows manipulation of large files in gcc and some other compilers23*/24#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)25#define _LARGEFILE_SOURCE 126#define _FILE_OFFSET_BITS 6427#endif2829#endif /* } */303132/*33** Windows stuff34*/35#if defined(_WIN32) /* { */3637#if !defined(_CRT_SECURE_NO_WARNINGS)38#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */39#endif4041#endif /* } */4243#endif44454647