blob: 61555f1a927950899c06a7868387c1d305f16c5f [file] [log] [blame]
Dan Albertf25c8662015-02-05 23:55:15 +00001//===-------------------------- __cxxabi_config.h -------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef ____CXXABI_CONFIG_H
11#define ____CXXABI_CONFIG_H
12
Saleem Abdulrasool242d67b2015-12-04 02:14:41 +000013#if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
Dan Albertf25c8662015-02-05 23:55:15 +000014 !defined(__ARM_DWARF_EH__)
15#define LIBCXXABI_ARM_EHABI 1
16#else
17#define LIBCXXABI_ARM_EHABI 0
18#endif
19
Saleem Abdulrasool12315ed2015-12-04 02:14:58 +000020#if !defined(__has_attribute)
21#define __has_attribute(_attribute_) 0
22#endif
23
24#if defined(_LIBCXXABI_DLL)
25 #if defined(cxxabi_EXPORTS)
26 #define _LIBCXXABI_HIDDEN
Saleem Abdulrasool18ef5642016-05-26 02:12:20 +000027 #define _LIBCXXABI_DATA_VIS __declspec(dllexport)
Saleem Abdulrasool12315ed2015-12-04 02:14:58 +000028 #define _LIBCXXABI_FUNC_VIS __declspec(dllexport)
29 #define _LIBCXXABI_TYPE_VIS __declspec(dllexport)
30 #else
31 #define _LIBCXXABI_HIDDEN
Saleem Abdulrasool18ef5642016-05-26 02:12:20 +000032 #define _LIBCXXABI_DATA_VIS __declspec(dllimport)
Saleem Abdulrasool12315ed2015-12-04 02:14:58 +000033 #define _LIBCXXABI_FUNC_VIS __declspec(dllimport)
34 #define _LIBCXXABI_TYPE_VIS __declspec(dllimport)
35 #endif
36#else
37 #define _LIBCXXABI_HIDDEN __attribute__((__visibility__("hidden")))
Saleem Abdulrasool18ef5642016-05-26 02:12:20 +000038 #define _LIBCXXABI_DATA_VIS __attribute__((__visibility__("default")))
Saleem Abdulrasool12315ed2015-12-04 02:14:58 +000039 #define _LIBCXXABI_FUNC_VIS __attribute__((__visibility__("default")))
40 #if __has_attribute(__type_visibility__)
41 #define _LIBCXXABI_TYPE_VIS __attribute__((__type_visibility__("default")))
42 #else
43 #define _LIBCXXABI_TYPE_VIS __attribute__((__visibility__("default")))
44 #endif
45#endif
46
Dan Albertf25c8662015-02-05 23:55:15 +000047#endif // ____CXXABI_CONFIG_H