-
Notifications
You must be signed in to change notification settings - Fork 8
/
platform.h.in
67 lines (51 loc) · 2.47 KB
/
platform.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*-------------------------------------------------------------------*/
/* platform.h -- primary build header. Should be first #include. */
/*-------------------------------------------------------------------*/
#ifndef IN_PLATFORM_H
#define IN_PLATFORM_H
/*-------------------------------------------------------------------*/
/* Include primary system headers according to build platform. */
/*-------------------------------------------------------------------*/
#ifdef _MSC_VER /* Microsoft Visual C/C++ */
#define _CRT_SECURE_NO_WARNINGS /* We know what we're doing! */
#define _WIN32_WINNT 0x0600 /* Windows Vista/Server 2008 */
#define WINVER 0x0600 /* Windows Vista/Server 2008 */
#define NTDDI_VERSION 0x06000100 /* Vista SP1 / Server 2008 */
#define _WIN32_IE 0x0900 /* Internet Explorer 9.0 */
/* Need <SDKDDKVer.h> header with later versions of Visual Studio. */
#if _MSC_VER >= 1600 /* If VS2010 or greater, */
#include <SDKDDKVer.h> /* then need this header */
#endif
#include <windows.h> /* Primary Windows header */
/* Other system includes would go here... */
#else /* non-Windows */
/* Other system includes would go here... */
#endif /* Windows or not */
/*-------------------------------------------------------------------*/
/* Use fallback if system headers not found. */
/*-------------------------------------------------------------------*/
#cmakedefine HAVE_STDBOOL_H /* (determined by CMake) */
#cmakedefine HAVE_STDINT_H /* (determined by CMake) */
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
/* minimum stdbool.h #defines needed by decNumber */
#define bool _Bool
#define false 0
#define true 1
#define __bool_true_false_are_defined 1
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
/* minimum stdint.h typedefs needed by decNumber */
typedef unsigned char uint8_t;
typedef char int8_t;
typedef unsigned short uint16_t;
typedef short int16_t;
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned long long uint64_t;
typedef long long int64_t;
#endif
#endif /* #ifndef IN_PLATFORM_H */