diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-19 14:26:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-19 14:26:52 -0200 |
commit | 1dea3930585f5fd71b99c13515c97c1555817709 (patch) | |
tree | 8b9e9b4a149029f3b5911347f4ef954b8366b822 | |
parent | 45dec34597a7195deb0a6a4f5f9b868d8aa2eb6c (diff) | |
download | lua-1dea3930585f5fd71b99c13515c97c1555817709.tar.gz lua-1dea3930585f5fd71b99c13515c97c1555817709.tar.bz2 lua-1dea3930585f5fd71b99c13515c97c1555817709.zip |
small corrections for 'luaall.c'
-rw-r--r-- | luaconf.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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> |