mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
added "_CRT_SECURE_NO_WARNINGS" for Windows (to avoid warnings about
several standard C functions) + small changes in '#include's
This commit is contained in:
parent
745618d941
commit
f8e0d33b25
15
luaconf.h
15
luaconf.h
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: luaconf.h,v 1.216 2014/10/08 20:24:43 roberto Exp $
|
** $Id: luaconf.h,v 1.216 2014/10/08 20:32:50 roberto Exp roberto $
|
||||||
** Configuration file for Lua
|
** Configuration file for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -8,9 +8,6 @@
|
|||||||
#ifndef lconfig_h
|
#ifndef lconfig_h
|
||||||
#define lconfig_h
|
#define lconfig_h
|
||||||
|
|
||||||
#include <limits.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** ==================================================================
|
** ==================================================================
|
||||||
@ -73,6 +70,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LUA_WIN)
|
#if defined(LUA_WIN)
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ANSI C functions */
|
||||||
#define LUA_DL_DLL
|
#define LUA_DL_DLL
|
||||||
#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
|
#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
|
||||||
#endif
|
#endif
|
||||||
@ -113,6 +111,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
|
@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
|
||||||
@@ Lua libraries.
|
@@ Lua libraries.
|
||||||
@ -258,14 +259,10 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
@@ luai_writestring/luai_writeline define how 'print' prints its results.
|
@@ luai_writestring/luai_writeline define how 'print' prints its results.
|
||||||
** They are only used in libraries and the stand-alone program. (The #if
|
** They are only used in libraries and the stand-alone program.
|
||||||
** avoids including 'stdio.h' everywhere.)
|
|
||||||
*/
|
*/
|
||||||
#if defined(LUA_LIB) || defined(lua_c)
|
|
||||||
#include <stdio.h>
|
|
||||||
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
|
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
|
||||||
#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
|
#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ luai_writestringerror defines how to print error messages.
|
@@ luai_writestringerror defines how to print error messages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user