diff options
| author | KO Myung-Hun <komh78@gmail.com> | 2025-11-27 15:19:55 +0900 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-11-28 13:28:20 +0200 |
| commit | df4c35bab48395aa432c76482d3020a6c34f9619 (patch) | |
| tree | c19b6e4aabb1d26b5c3d91cc93cf2f662e08ea54 /mesonbuild/templates/objcpptemplates.py | |
| parent | 4cddf9d439ad786cc4b9f70352daf0c00ec32646 (diff) | |
| download | meson-df4c35bab48395aa432c76482d3020a6c34f9619.tar.gz | |
templates: Define a macro for pubic APIs on OS/2
Diffstat (limited to 'mesonbuild/templates/objcpptemplates.py')
| -rw-r--r-- | mesonbuild/templates/objcpptemplates.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/templates/objcpptemplates.py b/mesonbuild/templates/objcpptemplates.py index 1fdfa06a4..1f4bef431 100644 --- a/mesonbuild/templates/objcpptemplates.py +++ b/mesonbuild/templates/objcpptemplates.py @@ -18,6 +18,12 @@ lib_h_template = '''#pragma once #else #define {utoken}_PUBLIC __declspec(dllimport) #endif +#elif defined __OS2__ + #ifdef BUILDING_{utoken} + #define {utoken}_PUBLIC __declspec(dllexport) + #else + #define {utoken}_PUBLIC + #endif #else #ifdef BUILDING_{utoken} #define {utoken}_PUBLIC __attribute__ ((visibility ("default"))) |
