sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
lprefix.h
Go to the documentation of this file.
1
/*
2
** $Id: lprefix.h $
3
** Definitions for Lua code that must come before any other header file
4
** See Copyright Notice in lua.h
5
*/
6
11
#ifndef lprefix_h
12
#define lprefix_h
13
14
15
/*
16
** Allows POSIX/XSI stuff
17
*/
18
#if !defined(LUA_USE_C89)
/* { */
19
20
#if !defined(_XOPEN_SOURCE)
21
#define _XOPEN_SOURCE 600
22
#elif _XOPEN_SOURCE == 0
23
#undef _XOPEN_SOURCE
/* use -D_XOPEN_SOURCE=0 to undefine it */
24
#endif
25
26
/*
27
** Allows manipulation of large files in gcc and some other compilers
28
*/
29
#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
30
#define _LARGEFILE_SOURCE 1
31
#define _FILE_OFFSET_BITS 64
32
#endif
33
34
#endif
/* } */
35
36
37
/*
38
** Windows stuff
39
*/
40
#if defined(_WIN32)
/* { */
41
42
#if !defined(_CRT_SECURE_NO_WARNINGS)
43
#define _CRT_SECURE_NO_WARNINGS
/* avoid warnings about ISO C functions */
44
#endif
45
46
#endif
/* } */
47
48
#endif
49
lua
src
lprefix.h
Generated by
1.18.0