Debian Codegraph @

test cases/common/273 both libraries/src/api.h

raw
1 #pragma once
2
3 #if defined EXPORT
4 #if defined _WIN32 || defined __CYGWIN__
5 #define API __declspec(dllexport)
6 #else
7 #if defined __GNUC__
8 #define API __attribute__((visibility("default")))
9 #else
10 #define API
11 #endif
12 #endif
13 #else
14 #define API
15 #endif