]> git.tdb.fi Git - builder.git/blob - source/lib/libbuilder_api.h
Add visibility decorations to the library and plugins
[builder.git] / source / lib / libbuilder_api.h
1 #ifndef LIBBUILDER_API_H_
2 #define LIBBUILDER_API_H_
3
4 #if defined(_WIN32)
5 #if defined(LIBBUILDER_BUILD)
6 #define LIBBUILDER_API __declspec(dllexport)
7 #elif defined(LIBBUILDER_IMPORT)
8 #define LIBBUILDER_API __declspec(dllimport)
9 #else
10 #define LIBBUILDER_API
11 #endif
12 #elif defined(__GNUC__)
13 #define LIBBUILDER_API __attribute__((visibility("default")))
14 #endif
15
16 #endif