diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-09-14 09:16:25 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-09-14 09:16:25 +0800 |
commit | 8c32b0811fa80bbc2b69ef9e4198914c559881a6 (patch) | |
tree | e47f8be6217d31c109c205e9edf87e02d83837e5 /games | |
parent | 4851e49337df0cefea0aecfdee36a7b4848d6338 (diff) | |
download | freebsd-ports-gnome-8c32b0811fa80bbc2b69ef9e4198914c559881a6.tar.gz freebsd-ports-gnome-8c32b0811fa80bbc2b69ef9e4198914c559881a6.tar.zst freebsd-ports-gnome-8c32b0811fa80bbc2b69ef9e4198914c559881a6.zip |
Fix build with clang/libc++
Diffstat (limited to 'games')
-rw-r--r-- | games/enigma/files/patch-src-lua.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/enigma/files/patch-src-lua.cc b/games/enigma/files/patch-src-lua.cc new file mode 100644 index 000000000000..c123e24c62af --- /dev/null +++ b/games/enigma/files/patch-src-lua.cc @@ -0,0 +1,20 @@ +--- src/lua.cc.orig 2007-09-08 16:20:02.000000000 +0400 ++++ src/lua.cc 2013-09-14 02:32:22.905227099 +0400 +@@ -171,7 +171,7 @@ + if (lua_isnil(L,idx)) + return 0; + +- if (!is_object(L,idx)) { ++ if (!::is_object(L,idx)) { + throwLuaError(L, "Cannot convert type to an Object"); + return 0; + } +@@ -294,7 +294,7 @@ + + if (lua_isnil(L, 3)) + fl = 0; +- else if (is_object(L,3)) { ++ else if (::is_object(L,3)) { + fl = static_cast<Floor*>(*(static_cast<void**> (lua_touserdata(L,3)))); + if( ! fl) + throwLuaError(L, "object is no valid floor"); |