summaryrefslogtreecommitdiff
path: root/deskutils/gnote/files/extra-src_base_macros.hpp
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2016-02-14 18:57:53 +0000
committerKoop Mast <kwm@FreeBSD.org>2016-02-14 18:57:53 +0000
commitb93a80c99281466281db26011356c75bd54ea36c (patch)
treecb5a8a1108829deee66dbb334ff2a733162448c6 /deskutils/gnote/files/extra-src_base_macros.hpp
parent- Add LICENSE (diff)
The FreeBSD GNOME team proudly presents GNOME 3.18 for FreeBSD.
The offical GNOME 3.18 release notes can be found at https://help.gnome.org/misc/release-notes/3.18/ This update doesn't contain the glib/gtk c++ bindings which will be done in a another update due to the requirement on c++11 and the amount of fallout this probably will give. GDM is still at version 3.16 due to some issues. Bump mate-themes to use the gtk 3.18 version of the themes. Thanks to Antoine Brodin for running the exp-runs. This release was made possible by the following people: Gustau Perez Ting-Wei_Lan PR: 207006
Diffstat (limited to 'deskutils/gnote/files/extra-src_base_macros.hpp')
-rw-r--r--deskutils/gnote/files/extra-src_base_macros.hpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/deskutils/gnote/files/extra-src_base_macros.hpp b/deskutils/gnote/files/extra-src_base_macros.hpp
new file mode 100644
index 000000000000..a04e604f38ab
--- /dev/null
+++ b/deskutils/gnote/files/extra-src_base_macros.hpp
@@ -0,0 +1,46 @@
+Working around c++11 issues with the port compiler used on 9.3.
+
+--- src/base/macros.hpp.orig 2016-01-06 21:33:38.207318000 +0100
++++ src/base/macros.hpp 2016-01-06 21:45:25.932524000 +0100
+@@ -29,14 +29,16 @@
+ #ifndef __BASE_MACROS_
+ #define __BASE_MACROS_
+
+-#if __cplusplus < 201103L
++//#if __cplusplus < 201103L
+ #include <tr1/memory>
+ #include <boost/foreach.hpp>
+ #include <boost/lexical_cast.hpp>
++/*
+ #else
+ #include <memory>
+ #include <string>
+ #endif
++*/
+
+ #if __GNUC__
+ #define _PRINTF_FORMAT(f,a) \
+@@ -46,7 +48,7 @@
+ #endif
+
+ // define 'final' and 'override' for pre-C++11 compilers
+-#if __cplusplus < 201103L
++//#if __cplusplus < 201103L
+ #define final
+ #define override
+ #define FOREACH(var, container) BOOST_FOREACH(var, container)
+@@ -58,6 +60,7 @@
+ using std::tr1::enable_shared_from_this;
+ using std::tr1::dynamic_pointer_cast;
+ using std::tr1::static_pointer_cast;
++/*
+ #else
+ #define FOREACH(var, container) for(var : container)
+ #define TO_STRING(x) std::to_string(x)
+@@ -69,5 +72,6 @@
+ using std::dynamic_pointer_cast;
+ using std::static_pointer_cast;
+ #endif
++*/
+
+ #endif