]> git.tdb.fi Git - libs/game.git/blob - source/game/mspgame_api.h
Decorate things which constitute the public API of the library
[libs/game.git] / source / game / mspgame_api.h
1 #ifndef MSP_GAME_API_H_
2 #define MSP_GAME_API_H_
3
4 #if defined(_WIN32)
5 #if defined(MSPGAME_BUILD)
6 #define MSPGAME_API __declspec(dllexport)
7 #elif defined(MSPGAME_IMPORT)
8 #define MSPGAME_API __declspec(dllimport)
9 #else
10 #define MSPGAME_API
11 #endif
12 #elif defined(__GNUC__)
13 #define MSPGAME_API __attribute__((visibility("default")))
14 #else
15 #define MSPGAME_API
16 #endif
17
18 #endif