diff options
author | rakuco <rakuco@FreeBSD.org> | 2016-03-24 18:31:07 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2016-03-24 18:31:07 +0800 |
commit | e892377df154dd2bb1aac25254db0588f33197a1 (patch) | |
tree | 87b699fa6423b6c968f546361d0d46f42e85a4cc /net-p2p | |
parent | af04e8732655f813e9bedced3d06a50c5e3aed9d (diff) | |
download | freebsd-ports-gnome-e892377df154dd2bb1aac25254db0588f33197a1.tar.gz freebsd-ports-gnome-e892377df154dd2bb1aac25254db0588f33197a1.tar.zst freebsd-ports-gnome-e892377df154dd2bb1aac25254db0588f33197a1.zip |
qt4-moc: Add more Boost include guards to moc's definition list.
In preparation for updating Boost to 1.60, add include guards from more Boost
headers to the list of macros that moc automatically defines when processing
files. As explained in r408911, Qt4's moc cannot parse some constructs used by
a few Boost headers, so we define their include guards to make moc skip them.
This is a cleaner approach that allows us to largely revert r408472, r408473,
r408474, r408475, r408502, r408773 and r408419, which added several patches to
many ports to work around this moc bug.
PR: 199601
PR: 208322
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/namecoin/files/patch-src_allocators.h | 12 | ||||
-rw-r--r-- | net-p2p/namecoin/files/patch-src_qt_guiutil.h | 12 | ||||
-rw-r--r-- | net-p2p/namecoin/files/patch-src_util.h | 16 |
3 files changed, 0 insertions, 40 deletions
diff --git a/net-p2p/namecoin/files/patch-src_allocators.h b/net-p2p/namecoin/files/patch-src_allocators.h deleted file mode 100644 index 54e70f9283f8..000000000000 --- a/net-p2p/namecoin/files/patch-src_allocators.h +++ /dev/null @@ -1,12 +0,0 @@ ---- src/allocators.h.orig 2014-12-18 14:47:02 UTC -+++ src/allocators.h -@@ -7,7 +7,9 @@ - - #include <string.h> - #include <string> -+#ifndef Q_MOC_RUN - #include <boost/thread/mutex.hpp> -+#endif - #include <map> - #include <openssl/crypto.h> // for OPENSSL_cleanse() - diff --git a/net-p2p/namecoin/files/patch-src_qt_guiutil.h b/net-p2p/namecoin/files/patch-src_qt_guiutil.h deleted file mode 100644 index 9c77f2c20627..000000000000 --- a/net-p2p/namecoin/files/patch-src_qt_guiutil.h +++ /dev/null @@ -1,12 +0,0 @@ ---- src/qt/guiutil.h.orig 2014-12-18 14:47:02 UTC -+++ src/qt/guiutil.h -@@ -5,7 +5,9 @@ - #include <QObject> - #include <QMessageBox> - -+#ifndef Q_MOC_RUN - #include <boost/filesystem.hpp> -+#endif - - class SendCoinsRecipient; - diff --git a/net-p2p/namecoin/files/patch-src_util.h b/net-p2p/namecoin/files/patch-src_util.h deleted file mode 100644 index b0432044bf07..000000000000 --- a/net-p2p/namecoin/files/patch-src_util.h +++ /dev/null @@ -1,16 +0,0 @@ ---- src/util.h.orig 2014-12-18 14:47:02 UTC -+++ src/util.h -@@ -15,11 +15,13 @@ - #include <vector> - #include <string> - -+#ifndef Q_MOC_RUN - #include <boost/version.hpp> - #include <boost/thread.hpp> - #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp> - #include <boost/date_time/gregorian/gregorian_types.hpp> - #include <boost/date_time/posix_time/posix_time_types.hpp> -+#endif - - #include <openssl/sha.h> - #include <openssl/ripemd.h> |