Mercurial > libanimone
comparison include/animone/types.h @ 26:77a5ea5e996c
*: transfer back to cmake from autotools
autotools just made lots of things more complicated than
they should have and many things broke (i.e. translations)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 20 Jun 2024 05:56:06 -0400 |
parents | 60ded877339b |
children | fac2b2d242d3 |
comparison
equal
deleted
inserted
replaced
25:60ded877339b | 26:77a5ea5e996c |
---|---|
2 #define ANIMONE_ANIMONE_TYPES_H_ | 2 #define ANIMONE_ANIMONE_TYPES_H_ |
3 | 3 |
4 #include <cstdint> | 4 #include <cstdint> |
5 | 5 |
6 /* windows is so annoying */ | 6 /* windows is so annoying */ |
7 #ifdef ANIMONE_STATIC | 7 #ifdef _WIN32 |
8 # ifdef DLL_EXPORT | |
9 # define ANIMONE_API __declspec(dllexport) | |
10 # else | |
11 # define ANIMONE_API __declspec(dllimport) | |
12 # endif | |
13 #else | |
8 # define ANIMONE_API | 14 # define ANIMONE_API |
9 #else | |
10 # ifdef _WIN32 | |
11 # ifdef DLL_EXPORT | |
12 # define ANIMONE_API __declspec(dllexport) | |
13 # else | |
14 # define ANIMONE_API __declspec(dllimport) | |
15 # endif | |
16 # else | |
17 # define ANIMONE_API | |
18 # endif | |
19 #endif | 15 #endif |
20 | 16 |
21 /* FIXME configure this in autoconf */ | 17 /* FIXME configure this in autoconf */ |
22 #ifndef _WIN32 | 18 #ifndef _WIN32 |
23 #include <sys/types.h> | 19 #include <sys/types.h> |