1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix build with clang/libc++

This commit is contained in:
Dmitry Marakasov 2013-09-14 01:16:25 +00:00
parent 3c68f1c457
commit 9ed4baeed6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327208

View File

@ -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");