commit 1dea3930585f5fd71b99c13515c97c1555817709
parent 45dec34597a7195deb0a6a4f5f9b868d8aa2eb6c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 19 Nov 2009 14:26:28 -0200
small corrections for 'luaall.c'
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/luaconf.h b/luaconf.h
@@ -1,5 +1,5 @@
/*
-** $Id: luaconf.h,v 1.112 2009/10/23 12:31:12 roberto Exp roberto $
+** $Id: luaconf.h,v 1.113 2009/11/16 15:51:03 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -182,7 +182,7 @@
*/
#if defined(luaall_c)
#define LUAI_FUNC static
-#define LUAI_DATA /* empty */
+#define LUAI_DATA extern
#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
defined(__ELF__)
@@ -510,7 +510,7 @@
*/
/* the following operations need the math library */
-#if defined(lobject_c) || defined(lvm_c)
+#if defined(lobject_c) || defined(lvm_c) || defined(luaall_c)
#include <math.h>
#define luai_nummod(L,a,b) ((a) - floor((a)/(b))*(b))
#define luai_numpow(L,a,b) (pow(a,b))
@@ -597,7 +597,7 @@ union luai_Cast { double l_d; long l_l; };
@* It is used only in ltable.c.
*/
-#if defined(ltable_c)
+#if defined(ltable_c) || defined(luaall_c)
#include <float.h>
#include <math.h>