[Lldb-commits] [lldb] r163640 - in /lldb/trunk: include/lldb/Core/cxa_demangle.h source/Core/Mangled.cpp
Filipe Cabecinhas
me at filcab.net
Tue Sep 11 11:11:12 PDT 2012
Author: filcab
Date: Tue Sep 11 13:11:12 2012
New Revision: 163640
URL: http://llvm.org/viewvc/llvm-project?rev=163640&view=rev
Log:
Make size_t known before including cxxabi.h (FreeBSD fix)
Modified:
lldb/trunk/include/lldb/Core/cxa_demangle.h
lldb/trunk/source/Core/Mangled.cpp
Modified: lldb/trunk/include/lldb/Core/cxa_demangle.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/cxa_demangle.h?rev=163640&r1=163639&r2=163640&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/cxa_demangle.h (original)
+++ lldb/trunk/include/lldb/Core/cxa_demangle.h Tue Sep 11 13:11:12 2012
@@ -10,6 +10,8 @@
#ifndef _CXA_DEMANGLE_H
#define _CXA_DEMANGLE_H
+// FreeBSD9-STABLE fix (define size_t before including cxxabi.h)
+#include <cstdlib>
#include <cxxabi.h>
#pragma GCC visibility push(hidden)
Modified: lldb/trunk/source/Core/Mangled.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Mangled.cpp?rev=163640&r1=163639&r2=163640&view=diff
==============================================================================
--- lldb/trunk/source/Core/Mangled.cpp (original)
+++ lldb/trunk/source/Core/Mangled.cpp Tue Sep 11 13:11:12 2012
@@ -15,6 +15,8 @@
#if defined(USE_BUILTIN_LIBCXXABI_DEMANGLER)
#include "lldb/Core/cxa_demangle.h"
#else
+// FreeBSD9-STABLE requires this to know about size_t in cxxabi.h
+#include <cstddef>
#include <cxxabi.h>
#endif
More information about the lldb-commits
mailing list