|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
-** $Id: $
|
|
|
|
|
|
+** $Id: lprefix.h,v 1.1 2014/11/03 15:12:44 roberto Exp roberto $
|
|
** Definitions for Lua code that must come before any other header file
|
|
** Definitions for Lua code that must come before any other header file
|
|
** See Copyright Notice in lua.h
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
*/
|
|
@@ -11,18 +11,24 @@
|
|
/*
|
|
/*
|
|
** Allows POSIX/XSI stuff
|
|
** Allows POSIX/XSI stuff
|
|
*/
|
|
*/
|
|
|
|
+#if !defined(LUA_USE_C89) /* { */
|
|
|
|
+
|
|
#if !defined(_XOPEN_SOURCE)
|
|
#if !defined(_XOPEN_SOURCE)
|
|
#define _XOPEN_SOURCE 600
|
|
#define _XOPEN_SOURCE 600
|
|
|
|
+#elif _XOPEN_SOURCE == 0
|
|
|
|
+#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
** Allows manipulation of large files in gcc and some other compilers
|
|
** Allows manipulation of large files in gcc and some other compilers
|
|
*/
|
|
*/
|
|
-#if !defined(_FILE_OFFSET_BITS)
|
|
|
|
|
|
+#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
|
|
#define _LARGEFILE_SOURCE 1
|
|
#define _LARGEFILE_SOURCE 1
|
|
#define _FILE_OFFSET_BITS 64
|
|
#define _FILE_OFFSET_BITS 64
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#endif /* } */
|
|
|
|
+
|
|
|
|
|
|
/*
|
|
/*
|
|
** Windows stuff
|
|
** Windows stuff
|