瀏覽代碼

Fix amalgamated build.

Mike Pall 8 年之前
父節點
當前提交
202713a638
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_state.h

+ 1 - 1
src/lj_state.h

@@ -28,7 +28,7 @@ static LJ_AINLINE void lj_state_checkstack(lua_State *L, MSize need)
 
 LJ_FUNC lua_State *lj_state_new(lua_State *L);
 LJ_FUNC void LJ_FASTCALL lj_state_free(global_State *g, lua_State *L);
-#if LJ_64
+#if LJ_64 && !LJ_GC64 && !(defined(LUAJIT_USE_VALGRIND) && defined(LUAJIT_USE_SYSMALLOC))
 LJ_FUNC lua_State *lj_state_newstate(lua_Alloc f, void *ud);
 #endif