Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #204 with support for compiling with -fvisibility=hidden #205

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions test/inc/platform/icd_test_log.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
#ifndef _ICD_TEST_LOG_H_
#define _ICD_TEST_LOG_H_

#if defined (_WIN32)
#define DllExport __declspec( dllexport )
#if defined(_WIN32) || defined(__CYGWIN__)
#define DllExport __declspec(dllexport)
#else
#define DllExport
#ifndef __has_attribute
#define __has_attribute(x) 0 // Compatibility with non-clang compilers.
#endif
#if (defined(__GNUC__) && (__GNUC__ >= 4)) ||\
(defined(__clang__) && __has_attribute(visibility))
#define DllExport __attribute__((visibility("default")))
#else
#define DllExport
#endif
#endif

DllExport int test_icd_initialize_app_log(void);
Expand Down