summaryrefslogtreecommitdiff
path: root/src/lua/lprefix.h
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2021-08-27 21:03:37 -0500
committerthe lemons <citrons@mondecitronne.com>2021-08-27 21:03:37 -0500
commit2081090536ac67ab5cfe2a8867815af2e15c5f16 (patch)
tree6ee9158715783aeb8312a87a8ed3981ab37f9c26 /src/lua/lprefix.h
parentb8789d4971409c429c6adf550e3a12d2d47f785d (diff)
start making lua happen. it does not compile yet. etc, etc, etcHEADmaster
Diffstat (limited to 'src/lua/lprefix.h')
-rw-r--r--src/lua/lprefix.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lua/lprefix.h b/src/lua/lprefix.h
new file mode 100644
index 0000000..9a749a3
--- /dev/null
+++ b/src/lua/lprefix.h
@@ -0,0 +1,45 @@
+/*
+** $Id: lprefix.h,v 1.2.1.1 2017/04/19 17:20:42 roberto Exp $
+** Definitions for Lua code that must come before any other header file
+** See Copyright Notice in lua.h
+*/
+
+#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
+