aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-15 11:53:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-15 11:53:20 -0300
commitf8e0d33b25bcff35a40b1f7493fc660b435119d9 (patch)
treebc8611e207f37baecfa2fa94c5ed4a3566e71a34 /luaconf.h
parent745618d941d30ad6a1a3dddd6127df1e9d6280a0 (diff)
downloadlua-f8e0d33b25bcff35a40b1f7493fc660b435119d9.tar.gz
lua-f8e0d33b25bcff35a40b1f7493fc660b435119d9.tar.bz2
lua-f8e0d33b25bcff35a40b1f7493fc660b435119d9.zip
added "_CRT_SECURE_NO_WARNINGS" for Windows (to avoid warnings about
several standard C functions) + small changes in '#include's
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/luaconf.h b/luaconf.h
index aa888171..316db5e6 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.216 2014/10/08 20:24:43 roberto Exp $ 2** $Id: luaconf.h,v 1.216 2014/10/08 20:32:50 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -8,9 +8,6 @@
8#ifndef lconfig_h 8#ifndef lconfig_h
9#define lconfig_h 9#define lconfig_h
10 10
11#include <limits.h>
12#include <stddef.h>
13
14 11
15/* 12/*
16** ================================================================== 13** ==================================================================
@@ -73,6 +70,7 @@
73#endif 70#endif
74 71
75#if defined(LUA_WIN) 72#if defined(LUA_WIN)
73#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ANSI C functions */
76#define LUA_DL_DLL 74#define LUA_DL_DLL
77#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ 75#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
78#endif 76#endif
@@ -113,6 +111,9 @@
113 111
114 112
115 113
114#include <limits.h>
115#include <stddef.h>
116
116/* 117/*
117@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for 118@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
118@@ Lua libraries. 119@@ Lua libraries.
@@ -258,14 +259,10 @@
258 259
259/* 260/*
260@@ luai_writestring/luai_writeline define how 'print' prints its results. 261@@ luai_writestring/luai_writeline define how 'print' prints its results.
261** They are only used in libraries and the stand-alone program. (The #if 262** They are only used in libraries and the stand-alone program.
262** avoids including 'stdio.h' everywhere.)
263*/ 263*/
264#if defined(LUA_LIB) || defined(lua_c)
265#include <stdio.h>
266#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) 264#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
267#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout)) 265#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
268#endif
269 266
270/* 267/*
271@@ luai_writestringerror defines how to print error messages. 268@@ luai_writestringerror defines how to print error messages.