Browse Source

FFI: Disable unused code for some build modes.

Mike Pall 14 years ago
parent
commit
7c61073a30
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lj_carith.c
  2. 1 1
      src/lj_carith.h

+ 1 - 1
src/lj_carith.c

@@ -215,7 +215,7 @@ int lj_carith_op(lua_State *L, MMS mm)
 
 
 /* -- 64 bit integer arithmetic helpers ----------------------------------- */
 /* -- 64 bit integer arithmetic helpers ----------------------------------- */
 
 
-#if LJ_32
+#if LJ_32 && LJ_HASJIT
 /* Signed/unsigned 64 bit multiplication. */
 /* Signed/unsigned 64 bit multiplication. */
 int64_t lj_carith_mul64(int64_t a, int64_t b)
 int64_t lj_carith_mul64(int64_t a, int64_t b)
 {
 {

+ 1 - 1
src/lj_carith.h

@@ -12,7 +12,7 @@
 
 
 LJ_FUNC int lj_carith_op(lua_State *L, MMS mm);
 LJ_FUNC int lj_carith_op(lua_State *L, MMS mm);
 
 
-#if LJ_32
+#if LJ_32 && LJ_HASJIT
 LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k);
 LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k);
 #endif
 #endif
 LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b);
 LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b);