We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ceb5d2 commit 217a177Copy full SHA for 217a177
1 file changed
test/inc/platform/icd_test_log.h
@@ -1,10 +1,18 @@
1
#ifndef _ICD_TEST_LOG_H_
2
#define _ICD_TEST_LOG_H_
3
4
-#if defined (_WIN32)
5
-#define DllExport __declspec( dllexport )
+#if defined(_WIN32) || defined(__CYGWIN__)
+ #define DllExport __declspec(dllexport)
6
#else
7
-#define DllExport
+ #ifndef __has_attribute
8
+ #define __has_attribute(x) 0 // Compatibility with non-clang compilers.
9
+ #endif
10
+ #if (defined(__GNUC__) && (__GNUC__ >= 4)) ||\
11
+ (defined(__clang__) && __has_attribute(visibility))
12
+ #define DllExport __attribute__((visibility("default")))
13
+ #else
14
+ #define DllExport
15
16
#endif
17
18
DllExport int test_icd_initialize_app_log(void);
0 commit comments