aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/luaconf.h b/luaconf.h
index c58ec718..8939dd27 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.112 2009/10/23 12:31:12 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.113 2009/11/16 15:51:03 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*/
@@ -182,7 +182,7 @@
182*/ 182*/
183#if defined(luaall_c) 183#if defined(luaall_c)
184#define LUAI_FUNC static 184#define LUAI_FUNC static
185#define LUAI_DATA /* empty */ 185#define LUAI_DATA extern
186 186
187#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \ 187#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
188 defined(__ELF__) 188 defined(__ELF__)
@@ -510,7 +510,7 @@
510*/ 510*/
511 511
512/* the following operations need the math library */ 512/* the following operations need the math library */
513#if defined(lobject_c) || defined(lvm_c) 513#if defined(lobject_c) || defined(lvm_c) || defined(luaall_c)
514#include <math.h> 514#include <math.h>
515#define luai_nummod(L,a,b) ((a) - floor((a)/(b))*(b)) 515#define luai_nummod(L,a,b) ((a) - floor((a)/(b))*(b))
516#define luai_numpow(L,a,b) (pow(a,b)) 516#define luai_numpow(L,a,b) (pow(a,b))
@@ -597,7 +597,7 @@ union luai_Cast { double l_d; long l_l; };
597@* It is used only in ltable.c. 597@* It is used only in ltable.c.
598*/ 598*/
599 599
600#if defined(ltable_c) 600#if defined(ltable_c) || defined(luaall_c)
601 601
602#include <float.h> 602#include <float.h>
603#include <math.h> 603#include <math.h>