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/46 subproject subproject/subprojects/a/a.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meson/test cases/common/46 subproject subproject/subprojects/a/a.c (limited to 'meson/test cases/common/46 subproject subproject/subprojects/a/a.c') diff --git a/meson/test cases/common/46 subproject subproject/subprojects/a/a.c b/meson/test cases/common/46 subproject subproject/subprojects/a/a.c new file mode 100644 index 000000000..f9848c136 --- /dev/null +++ b/meson/test cases/common/46 subproject subproject/subprojects/a/a.c @@ -0,0 +1,15 @@ +int func2(void); + +#if defined _WIN32 || defined __CYGWIN__ + #define DLL_PUBLIC __declspec(dllexport) +#else + #if defined __GNUC__ + #define DLL_PUBLIC __attribute__ ((visibility("default"))) + #else + #pragma message ("Compiler does not support symbol visibility.") + #define DLL_PUBLIC + #endif +#endif + +int DLL_PUBLIC func(void) { return func2(); } + -- cgit 1.2.3-korg