Author: emaste Date: Mon Mar 14 15:39:08 2016 New Revision: 263486 URL: http://llvm.org/viewvc/llvm-project?rev=263486&view=rev Log: Shuffle an #undef to avoid a warning on FreeBSD
On FreeBSD _LIBCPP_EXTERN_TEMPLATE is being defined from something included by lldb/lldb-private.h. Undefine it after the #include to avoid the redefinition warning. Differential Revision: http://reviews.llvm.org/D17402 Modified: lldb/trunk/source/Core/CxaDemangle.cpp Modified: lldb/trunk/source/Core/CxaDemangle.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/CxaDemangle.cpp?rev=263486&r1=263485&r2=263486&view=diff ============================================================================== --- lldb/trunk/source/Core/CxaDemangle.cpp (original) +++ lldb/trunk/source/Core/CxaDemangle.cpp Mon Mar 14 15:39:08 2016 @@ -20,9 +20,8 @@ #include "lldb/Host/windows/win32.h" // snprintf #endif #include "llvm/Support/Compiler.h" // LLVM_{NOEXCEPT, CONSTEXPR, ALIGNAS} -#undef _LIBCPP_EXTERN_TEMPLATE // Avoid warning below - #include "lldb/lldb-private.h" +#undef _LIBCPP_EXTERN_TEMPLATE // Avoid warning below //===-------------------------- cxa_demangle.cpp --------------------------===// // _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits