2015-02-06 07:55:15 +08:00
|
|
|
//===-------------------------- __cxxabi_config.h -------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef ____CXXABI_CONFIG_H
|
|
|
|
#define ____CXXABI_CONFIG_H
|
|
|
|
|
2015-12-04 10:14:41 +08:00
|
|
|
#if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
|
2015-02-06 07:55:15 +08:00
|
|
|
!defined(__ARM_DWARF_EH__)
|
|
|
|
#define LIBCXXABI_ARM_EHABI 1
|
|
|
|
#else
|
|
|
|
#define LIBCXXABI_ARM_EHABI 0
|
|
|
|
#endif
|
|
|
|
|
2015-12-04 10:14:58 +08:00
|
|
|
#if !defined(__has_attribute)
|
|
|
|
#define __has_attribute(_attribute_) 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(_LIBCXXABI_DLL)
|
|
|
|
#if defined(cxxabi_EXPORTS)
|
|
|
|
#define _LIBCXXABI_HIDDEN
|
2016-05-26 10:12:20 +08:00
|
|
|
#define _LIBCXXABI_DATA_VIS __declspec(dllexport)
|
2015-12-04 10:14:58 +08:00
|
|
|
#define _LIBCXXABI_FUNC_VIS __declspec(dllexport)
|
|
|
|
#define _LIBCXXABI_TYPE_VIS __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define _LIBCXXABI_HIDDEN
|
2016-05-26 10:12:20 +08:00
|
|
|
#define _LIBCXXABI_DATA_VIS __declspec(dllimport)
|
2015-12-04 10:14:58 +08:00
|
|
|
#define _LIBCXXABI_FUNC_VIS __declspec(dllimport)
|
|
|
|
#define _LIBCXXABI_TYPE_VIS __declspec(dllimport)
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define _LIBCXXABI_HIDDEN __attribute__((__visibility__("hidden")))
|
2016-05-26 10:12:20 +08:00
|
|
|
#define _LIBCXXABI_DATA_VIS __attribute__((__visibility__("default")))
|
2015-12-04 10:14:58 +08:00
|
|
|
#define _LIBCXXABI_FUNC_VIS __attribute__((__visibility__("default")))
|
|
|
|
#if __has_attribute(__type_visibility__)
|
|
|
|
#define _LIBCXXABI_TYPE_VIS __attribute__((__type_visibility__("default")))
|
|
|
|
#else
|
|
|
|
#define _LIBCXXABI_TYPE_VIS __attribute__((__visibility__("default")))
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2015-02-06 07:55:15 +08:00
|
|
|
#endif // ____CXXABI_CONFIG_H
|