From 9fe2d0266ac3ba30d432ca8edf6116beb94fe2af Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 4 Jan 2005 10:46:04 -0200 Subject: [PATCH] better configuration for Windows --- luaconf.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/luaconf.h b/luaconf.h index 7ec89f85..905a00ca 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.21 2004/12/22 17:43:27 roberto Exp roberto $ +** $Id: luaconf.h,v 1.22 2004/12/27 15:58:15 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -96,7 +96,7 @@ #define stdin_is_tty() isatty(0) #elif defined(_WIN32) #include -#include +#include #define stdin_is_tty() _isatty(_fileno(stdin)) #else #define stdin_is_tty() 1 /* assume stdin is a tty */ @@ -217,8 +217,7 @@ #if defined(__GNUC__) && defined(__i386) #define lua_number2int(i,d) __asm__ ("fistpl %0":"=m"(i):"t"(d):"st") -#elif defined(_WIN32) && defined(_M_IX86) -#include +#elif defined(_MSC_VER) && defined(_M_IX86) #pragma warning(disable: 4514) __inline int l_lrint (double flt) { int i;