diff options
| author | KO Myung-Hun <komh78@gmail.com> | 2025-11-27 15:17:04 +0900 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-11-28 13:28:20 +0200 |
| commit | 4cddf9d439ad786cc4b9f70352daf0c00ec32646 (patch) | |
| tree | 5b46c7c76913bc92de7cc588433f3b9bdb31580f | |
| parent | 0ecbca6bc93c829d9665ccaa8cfb57e56ee1e0b6 (diff) | |
| download | meson-4cddf9d439ad786cc4b9f70352daf0c00ec32646.tar.gz | |
modules/snippets: Define a macro for public APIs on OS/2
| -rw-r--r-- | mesonbuild/modules/snippets.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/snippets.py b/mesonbuild/modules/snippets.py index f93a754a8..bfc8d7ab7 100644 --- a/mesonbuild/modules/snippets.py +++ b/mesonbuild/modules/snippets.py @@ -79,6 +79,9 @@ class SnippetsModule(NewExtensionModule): #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined({static_compilation}) # define {api}_EXPORT __declspec(dllexport) # define {api}_IMPORT __declspec(dllimport) + #elif defined(__OS2__) && !defined({static_compilation}) + # define {api}_EXPORT __declspec(dllexport) + # define {api}_IMPORT #elif __GNUC__ >= 4 # define {api}_EXPORT __attribute__((visibility("default"))) # define {api}_IMPORT |
