Просмотр исходного кода

general: enable use of tie and tuple on macOS (from TR1, for now)

rdb 7 лет назад
Родитель
Сommit
8a98bf42a3
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      dtool/src/dtoolbase/dtoolbase_cc.h

+ 5 - 0
dtool/src/dtoolbase/dtoolbase_cc.h

@@ -122,6 +122,11 @@ typedef ios::seekdir ios_seekdir;
 // Apple has an outdated libstdc++.  Not all is lost, though, as we can fill
 // Apple has an outdated libstdc++.  Not all is lost, though, as we can fill
 // in some important missing functions.
 // in some important missing functions.
 #if defined(__GLIBCXX__) && __GLIBCXX__ <= 20070719
 #if defined(__GLIBCXX__) && __GLIBCXX__ <= 20070719
+#include <tr1/tuple>
+
+using std::tr1::tuple;
+using std::tr1::tie;
+
 typedef decltype(nullptr) nullptr_t;
 typedef decltype(nullptr) nullptr_t;
 
 
 template<class T> struct remove_reference      {typedef T type;};
 template<class T> struct remove_reference      {typedef T type;};