Skip to content

Commit 4cddf9d

Browse files
komhjpakkane
authored andcommitted
modules/snippets: Define a macro for public APIs on OS/2
1 parent 0ecbca6 commit 4cddf9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mesonbuild/modules/snippets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def symbol_visibility_header_method(self, state: ModuleState, args: T.Tuple[str]
7979
#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined({static_compilation})
8080
# define {api}_EXPORT __declspec(dllexport)
8181
# define {api}_IMPORT __declspec(dllimport)
82+
#elif defined(__OS2__) && !defined({static_compilation})
83+
# define {api}_EXPORT __declspec(dllexport)
84+
# define {api}_IMPORT
8285
#elif __GNUC__ >= 4
8386
# define {api}_EXPORT __attribute__((visibility("default")))
8487
# define {api}_IMPORT

0 commit comments

Comments
 (0)