includes egregious hack around OSX old libstdc++ using pre/early c++11 tr1/type_traits master
authorbob mert <bobmert@bobs-MacBook-Pro.local>
Sun, 15 Oct 2017 16:12:01 +0000 (09:12 -0700)
committerbob mert <bobmert@bobs-MacBook-Pro.local>
Sun, 15 Oct 2017 16:12:01 +0000 (09:12 -0700)
include/wx/strvararg.h

index 468cbf8..0c6184f 100644 (file)
@@ -18,6 +18,7 @@
 #include "wx/buffer.h"
 #include "wx/unichar.h"
 
+#ifndef __APPLE__
 #if defined(HAVE_TYPE_TRAITS)
     #include <type_traits>
 #elif defined(HAVE_TR1_TYPE_TRAITS)
@@ -27,7 +28,9 @@
         #include <tr1/type_traits>
     #endif
 #endif
-
+#else
+#include <tr1/type_traits>
+#endif
 class WXDLLIMPEXP_FWD_BASE wxCStrData;
 class WXDLLIMPEXP_FWD_BASE wxString;
 
@@ -341,10 +344,14 @@ struct wxFormatStringSpecifierNonPodType<true>
 template<typename T>
 struct wxFormatStringSpecifier
 {
+#ifndef __APPLE__
 #ifdef HAVE_TYPE_TRAITS
     typedef std::is_enum<T> is_enum;
 #elif defined HAVE_TR1_TYPE_TRAITS
     typedef std::tr1::is_enum<T> is_enum;
+#endif
+#else
+    typedef std::tr1::is_enum<T> is_enum;
 #endif
     enum { value = wxFormatStringSpecifierNonPodType<is_enum::value>::value };
 };
This page took 0.038187 seconds and 4 git commands to generate. Download a nemesis OSX (sierra+high sierra, tested/working) binary, with fuse-ext3 via e2fsprogs, at this link. application and installer are signed by screwjack, llc. must install fuse with macFUSE layer first.