0
0
Fork 0
haikuports/games-simulation/thepowdertoy/patches/thepowdertoy-96.2.350.patchset

27 lines
582 B
Plaintext

From 676d785d956ae1622d79b4c6eaedc329a4b547aa Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 27 Sep 2021 16:22:56 +1000
Subject: Fix build
diff --git a/src/lua/LuaBit.cpp b/src/lua/LuaBit.cpp
index 5dae78d..1e98158 100644
--- a/src/lua/LuaBit.cpp
+++ b/src/lua/LuaBit.cpp
@@ -163,6 +163,7 @@ static const struct luaL_Reg bit_funcs[] = {
*/
#define BAD_SAR (bsar(-8, 2) != (SBits)-2)
+#ifndef __HAIKU__
int luaopen_bit(lua_State *L)
{
UBits b;
@@ -190,3 +191,4 @@ int luaopen_bit(lua_State *L)
return 1;
}
#endif
+#endif
--
2.30.2