forked from OSchip/llvm-project
Make size_t known before including cxxabi.h (FreeBSD fix)
llvm-svn: 163640
This commit is contained in:
parent
ae78ce43c9
commit
dd39395f83
|
@ -10,6 +10,8 @@
|
||||||
#ifndef _CXA_DEMANGLE_H
|
#ifndef _CXA_DEMANGLE_H
|
||||||
#define _CXA_DEMANGLE_H
|
#define _CXA_DEMANGLE_H
|
||||||
|
|
||||||
|
// FreeBSD9-STABLE fix (define size_t before including cxxabi.h)
|
||||||
|
#include <cstdlib>
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
|
|
||||||
#pragma GCC visibility push(hidden)
|
#pragma GCC visibility push(hidden)
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
#if defined(USE_BUILTIN_LIBCXXABI_DEMANGLER)
|
#if defined(USE_BUILTIN_LIBCXXABI_DEMANGLER)
|
||||||
#include "lldb/Core/cxa_demangle.h"
|
#include "lldb/Core/cxa_demangle.h"
|
||||||
#else
|
#else
|
||||||
|
// FreeBSD9-STABLE requires this to know about size_t in cxxabi.h
|
||||||
|
#include <cstddef>
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue