From 7978a8d8b22b9f9d0e3d5689910be7fb3a4a02fc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 8 Jul 2011 17:07:11 -0300 Subject: [PATCH] added '_M_IX86' in NaN trick --- luaconf.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/luaconf.h b/luaconf.h index f199cde6..389edf33 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.159 2011/06/13 14:13:06 roberto Exp roberto $ +** $Id: luaconf.h,v 1.160 2011/06/28 17:14:12 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -499,12 +499,12 @@ ** doubles with conventional endianess (12345678 or 87654321), in CPUs ** that do not produce signaling NaN values (all NaNs are quiet). */ -#if defined(LUA_CORE) /* { */ - -#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) /* { */ +#if defined(LUA_CORE) && \ + defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) /* { */ /* little-endian architectures that satisfy those conditions */ -#if defined(__i386__) || defined(__i386) || defined(__X86__) +#if defined(__i386__) || defined(__i386) || defined(__X86__) || \ + defined(_M_IX86) #define LUA_NANTRICKLE @@ -512,8 +512,6 @@ #endif /* } */ -#endif /* } */ -