From 07441a7e18c045a5415d339c8184ce3221c1fe56 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 13 Dec 2013 12:04:52 -0600 Subject: Disable some crazy OS X hacks on non-GCC compilers --- mmc_updater/src/StlSymbolsLeopard.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mmc_updater/src/StlSymbolsLeopard.cpp b/mmc_updater/src/StlSymbolsLeopard.cpp index d5f58ebf..932c78f0 100644 --- a/mmc_updater/src/StlSymbolsLeopard.cpp +++ b/mmc_updater/src/StlSymbolsLeopard.cpp @@ -6,6 +6,9 @@ // // see http://stackoverflow.com/questions/3484043/os-x-program-runs-on-dev-machine-crashing-horribly-on-others +// Only do this on GCC. It fails builds on clang. +#if defined(__GCC__) + #include _GLIBCXX_BEGIN_NAMESPACE(std) @@ -73,3 +76,6 @@ template wistream& wistream::_M_extract(void*&); #endif _GLIBCXX_END_NAMESPACE + +#endif + -- cgit v1.2.3