diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2017-09-21 23:26:45 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2017-09-21 23:26:45 +0000 |
commit | de25fe9260369493153a54f3e8025f75b04c6fe9 (patch) | |
tree | 261875f4ac54f93d40753855c4abd6d40727225c /games | |
parent | 998bb91b9390a24131a6a7fee36a98791255931b (diff) | |
download | ports-de25fe9260369493153a54f3e8025f75b04c6fe9.tar.gz ports-de25fe9260369493153a54f3e8025f75b04c6fe9.zip |
games/simutrans: unbreak with libc++ 5.0
In file included from squirrel/squirrel/sqvm.cc:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:233:91: error: member reference base type 'int' is not a structure or union
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN() _NOEXCEPT {return type(0);}
^~~~~~~
squirrel/squirrel/sqobject.h:131:25: note: expanded from macro 'type'
#define type(obj) ((obj)._type)
~~~~~^~~~~~
PR: 222402
Submitted by: chardon.frederic@gmail.com
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=450309
Diffstat (limited to 'games')
-rw-r--r-- | games/simutrans/files/patch-squirrel_squirrel_sqvm.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games/simutrans/files/patch-squirrel_squirrel_sqvm.cpp b/games/simutrans/files/patch-squirrel_squirrel_sqvm.cpp new file mode 100644 index 000000000000..9fcd19f6a280 --- /dev/null +++ b/games/simutrans/files/patch-squirrel_squirrel_sqvm.cpp @@ -0,0 +1,12 @@ +--- squirrel/squirrel/sqvm.cc.orig 2017-02-17 12:54:05 UTC
++++ squirrel/squirrel/sqvm.cc
+@@ -1,8 +1,8 @@
+ /*
+ see copyright notice in squirrel.h
+ */
+-#include "sqpcheader.h"
+ #include <math.h>
++#include "sqpcheader.h"
+ #include <stdlib.h>
+ #include <limits.h>
+ #include "sqopcodes.h"
|