.gitignore added
[dotfiles/.git] / .local / include / python3.9 / pygame / pgplatform.h
1 /* platform/compiler adjustments (internal) */
2 #ifndef PG_PLATFORM_INTERNAL_H
3 #define PG_PLATFORM_INTERNAL_H
4
5 /* This must be before all else */
6 #if defined(__SYMBIAN32__) && defined(OPENC)
7 #include <sys/types.h>
8 #if defined(__WINS__)
9 void *
10 _alloca(size_t size);
11 #define alloca _alloca
12 #endif /* __WINS__ */
13 #endif /* defined(__SYMBIAN32__) && defined(OPENC) */
14
15 #include "include/pgplatform.h"
16
17 #ifndef MIN
18 #define MIN(a, b) ((a) < (b) ? (a) : (b))
19 #endif
20 #ifndef MAX
21 #define MAX(a, b) ((a) > (b) ? (a) : (b))
22 #endif
23 #ifndef ABS
24 #define ABS(a) (((a) < 0) ? -(a) : (a))
25 #endif
26
27 #if defined(macintosh) && defined(__MWERKS__) || defined(__SYMBIAN32__)
28 #define PYGAME_EXPORT __declspec(export)
29 #else
30 #define PYGAME_EXPORT
31 #endif
32
33 /* warnings */
34 #define PG_STRINGIZE_HELPER(x) #x
35 #define PG_STRINGIZE(x) PG_STRINGIZE_HELPER(x)
36 #define PG_WARN(desc) message(__FILE__ "(" PG_STRINGIZE(__LINE__) "): WARNING: " #desc)
37
38 #endif /* ~PG_PLATFORM_INTERNAL_H */