From 8a98bf42a3bf5ecd473fe5cfd77059b17a340747 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 5 May 2018 23:09:39 +0200 Subject: [PATCH] general: enable use of tie and tuple on macOS (from TR1, for now) --- dtool/src/dtoolbase/dtoolbase_cc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dtool/src/dtoolbase/dtoolbase_cc.h b/dtool/src/dtoolbase/dtoolbase_cc.h index 6777ce5611..81968085bc 100644 --- a/dtool/src/dtoolbase/dtoolbase_cc.h +++ b/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 // in some important missing functions. #if defined(__GLIBCXX__) && __GLIBCXX__ <= 20070719 +#include + +using std::tr1::tuple; +using std::tr1::tie; + typedef decltype(nullptr) nullptr_t; template struct remove_reference {typedef T type;};