Make size_t known before including cxxabi.h (FreeBSD fix)

llvm-svn: 163640
This commit is contained in:
Filipe Cabecinhas 2012-09-11 18:11:12 +00:00
parent ae78ce43c9
commit dd39395f83
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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