MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
base.h
1#ifndef SYNC_BASE_H
2#define SYNC_BASE_H
3
4#ifdef __cplusplus
5 extern "C" {
6#endif
7
8#ifdef _MSC_VER
9 #define _CRT_SECURE_NO_WARNINGS 1
10 #define _CRT_NONSTDC_NO_DEPRECATE 1
11#endif
12
13#include <stddef.h>
14
15/* configure inline keyword */
16#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) && !defined(__cplusplus)
17 #if defined(_MSC_VER) || defined(__GNUC__) || defined(__SASC)
18 #define inline __inline
19 #else
20 /* compiler does not support inline */
21 #define inline
22 #endif
23#endif
24
25/* configure lacking CRT features */
26#ifdef _MSC_VER
27 #if _MSC_VER < 1900
28 #define snprintf _snprintf
29 #endif
30 /* int is 32-bit for both x86 and x64 */
31 typedef unsigned int uint32_t;
32 #define UINT32_MAX UINT_MAX
33#elif defined(__GNUC__)
34 #include <stdint.h>
35#elif defined(M68000)
36 typedef unsigned int uint32_t;
37#endif
38
39#ifdef __cplusplus
40 } // extern
41#endif
42#endif /* SYNC_BASE_H */