From a3fea90f7051a23abfac43fc1e07f9ab4aefbcb6 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sat, 11 Apr 2015 01:09:08 +0200 Subject: [osx/ios] - fix compilation with newest apple clang (xcode6.3) - disable forward declaration of boost containers (those broke compilation with c++11 and latest apple clang) --- xbmc/guilib/GUIFontCache.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xbmc/guilib/GUIFontCache.cpp b/xbmc/guilib/GUIFontCache.cpp index 1359b2ba2c..33e1d0076d 100644 --- a/xbmc/guilib/GUIFontCache.cpp +++ b/xbmc/guilib/GUIFontCache.cpp @@ -23,6 +23,13 @@ #include "GUIFontTTF.h" #include "GraphicContext.h" +#if defined(TARGET_DARWIN ) +// apple clang with c++11 doesn't like +// the forwards declarations of boost +// disable them ... +#define BOOST_DETAIL_NO_CONTAINER_FWD 1 +#endif + #include "boost/multi_index_container.hpp" #include "boost/multi_index/sequenced_index.hpp" #include "boost/multi_index/hashed_index.hpp" -- cgit v1.2.3