From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- .../common/170 generator link whole/export.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meson/test cases/common/170 generator link whole/export.h (limited to 'meson/test cases/common/170 generator link whole/export.h') diff --git a/meson/test cases/common/170 generator link whole/export.h b/meson/test cases/common/170 generator link whole/export.h new file mode 100644 index 000000000..f4f6f451b --- /dev/null +++ b/meson/test cases/common/170 generator link whole/export.h @@ -0,0 +1,18 @@ +#pragma once + +#if defined BUILDING_EMBEDDED + #define DLL_PUBLIC +#elif defined _WIN32 || defined __CYGWIN__ + #if defined BUILDING_DLL + #define DLL_PUBLIC __declspec(dllexport) + #else + #define DLL_PUBLIC __declspec(dllimport) + #endif +#else + #if defined __GNUC__ + #define DLL_PUBLIC __attribute__ ((visibility("default"))) + #else + #pragma message ("Compiler does not support symbol visibility.") + #define DLL_PUBLIC + #endif +#endif -- cgit 1.2.3-korg