summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/luaconf.h')
-rw-r--r--apps/plugins/lua/luaconf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lua/luaconf.h b/apps/plugins/lua/luaconf.h
index 478ea14530..109e680a17 100644
--- a/apps/plugins/lua/luaconf.h
+++ b/apps/plugins/lua/luaconf.h
@@ -529,13 +529,13 @@
529@@ The luai_num* macros define the primitive operations over numbers. 529@@ The luai_num* macros define the primitive operations over numbers.
530*/ 530*/
531#if defined(LUA_CORE) 531#if defined(LUA_CORE)
532#include <math.h> 532extern long rb_pow(long, long);
533#define luai_numadd(a,b) ((a)+(b)) 533#define luai_numadd(a,b) ((a)+(b))
534#define luai_numsub(a,b) ((a)-(b)) 534#define luai_numsub(a,b) ((a)-(b))
535#define luai_nummul(a,b) ((a)*(b)) 535#define luai_nummul(a,b) ((a)*(b))
536#define luai_numdiv(a,b) ((a)/(b)) 536#define luai_numdiv(a,b) ((a)/(b))
537#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b)) 537#define luai_nummod(a,b) ((a)%(b))
538#define luai_numpow(a,b) (pow(a,b)) 538#define luai_numpow(a,b) (rb_pow(a,b))
539#define luai_numunm(a) (-(a)) 539#define luai_numunm(a) (-(a))
540#define luai_numeq(a,b) ((a)==(b)) 540#define luai_numeq(a,b) ((a)==(b))
541#define luai_numlt(a,b) ((a)<(b)) 541#define luai_numlt(a,b) ((a)<(b))