aboutsummaryrefslogtreecommitdiff
path: root/lua-5.3.5/lprefix.h
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-07-07 12:04:43 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-07-07 12:04:43 +0200
commit8f93429df20d4d7bb5df9526e73a0ba79f14874e (patch)
tree66a3db8380e889556541c84255697654a128f4d2 /lua-5.3.5/lprefix.h
parent4595dae208687386b5d78090d188a62c460111bd (diff)
downloadmoony.lv2-8f93429df20d4d7bb5df9526e73a0ba79f14874e.zip
moony.lv2-8f93429df20d4d7bb5df9526e73a0ba79f14874e.tar.gz
moony.lv2-8f93429df20d4d7bb5df9526e73a0ba79f14874e.tar.bz2
moony.lv2-8f93429df20d4d7bb5df9526e73a0ba79f14874e.tar.xz
Update lua to version 5.3.5.
Diffstat (limited to 'lua-5.3.5/lprefix.h')
-rw-r--r--lua-5.3.5/lprefix.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/lua-5.3.5/lprefix.h b/lua-5.3.5/lprefix.h
new file mode 100644
index 0000000..9a749a3
--- /dev/null
+++ b/lua-5.3.5/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
+