diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-08 23:19:25 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-08 23:19:25 +0800 |
commit | 889c6b83bf1dfae7f0d94ddf7a62811914ddda75 (patch) | |
tree | 83aa7415cd366d356e003cd2fc92457061fd1ffa /games | |
parent | ea20d38461235599267288eea5c4f8d31ebdd9a0 (diff) | |
download | freebsd-ports-gnome-889c6b83bf1dfae7f0d94ddf7a62811914ddda75.tar.gz freebsd-ports-gnome-889c6b83bf1dfae7f0d94ddf7a62811914ddda75.tar.zst freebsd-ports-gnome-889c6b83bf1dfae7f0d94ddf7a62811914ddda75.zip |
- Fix build with clang
Diffstat (limited to 'games')
-rw-r--r-- | games/enigma/files/patch-lib-src-enigma-core-ecl__alist.hh | 11 | ||||
-rw-r--r-- | games/enigma/files/patch-lib-src-enigma-core-ecl__dict.hh | 10 | ||||
-rw-r--r-- | games/enigma/files/patch-src-oxyd.cc | 22 |
3 files changed, 43 insertions, 0 deletions
diff --git a/games/enigma/files/patch-lib-src-enigma-core-ecl__alist.hh b/games/enigma/files/patch-lib-src-enigma-core-ecl__alist.hh new file mode 100644 index 000000000000..0029d2ecd18c --- /dev/null +++ b/games/enigma/files/patch-lib-src-enigma-core-ecl__alist.hh @@ -0,0 +1,11 @@ +--- lib-src/enigma-core/ecl_alist.hh.orig 2007-09-08 16:20:05.000000000 +0400 ++++ lib-src/enigma-core/ecl_alist.hh 2013-07-10 23:10:11.780119603 +0400 +@@ -61,7 +61,7 @@ + VAL &operator[] (const key_type &key) { + iterator i=find(key); + if (i==this->end()) +- i=insert(this->end(), make_pair(key, VAL())); ++ i=this->insert(this->end(), make_pair(key, VAL())); + return i->second; + } + }; diff --git a/games/enigma/files/patch-lib-src-enigma-core-ecl__dict.hh b/games/enigma/files/patch-lib-src-enigma-core-ecl__dict.hh new file mode 100644 index 000000000000..1cb2c6268fce --- /dev/null +++ b/games/enigma/files/patch-lib-src-enigma-core-ecl__dict.hh @@ -0,0 +1,10 @@ +--- lib-src/enigma-core/ecl_dict.hh.orig 2007-09-08 16:20:05.000000000 +0400 ++++ lib-src/enigma-core/ecl_dict.hh 2013-07-10 23:08:37.858113264 +0400 +@@ -27,6 +27,7 @@ + extern unsigned hash(const std::string &key); + + class XInvalidKey : XGeneric { ++ public: + XInvalidKey () : XGeneric("invalid dictionary key") + {} + }; diff --git a/games/enigma/files/patch-src-oxyd.cc b/games/enigma/files/patch-src-oxyd.cc new file mode 100644 index 000000000000..2efd9145949d --- /dev/null +++ b/games/enigma/files/patch-src-oxyd.cc @@ -0,0 +1,22 @@ +--- src/oxyd.cc.orig 2007-09-08 16:20:02.000000000 +0400 ++++ src/oxyd.cc 2013-08-07 20:36:58.150878990 +0400 +@@ -130,7 +130,7 @@ + } + } + +- GridLoc to_gridloc (const SignalLocation &a) ++ GridLoc signal_to_gridloc (const SignalLocation &a) + { + assert (a.getGridType() >= GridType_First && + a.getGridType() <= GridType_Last); +@@ -644,8 +644,8 @@ + int nrec = level.getNumRecipients(sender); + for (int irec=0; irec<nrec; ++irec) { + SignalLocation recipient = level.getRecipient(sender, irec); +- GridLoc src = to_gridloc(sender); +- GridLoc dst = to_gridloc(recipient); ++ GridLoc src = signal_to_gridloc(sender); ++ GridLoc dst = signal_to_gridloc(recipient); + world::AddSignal (src, dst, "signal"); + } + } |