-
Notifications
You must be signed in to change notification settings - Fork 12
/
pdc_config.h.in
75 lines (66 loc) · 1.92 KB
/
pdc_config.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
68
69
70
71
72
73
74
75
/* Generated file. Only edit pdc_config_sys.h.in. */
#ifndef _pdc_config_H
#define _pdc_config_H
#include "pdc_config_sys.h"
/* Reflects major releases of PDC */
#define PDC_VERSION_MAJOR @PDC_VERSION_MAJOR @
/* Reflects any API changes */
#define PDC_VERSION_MINOR @PDC_VERSION_MINOR @
/* Reflects any library code changes */
#define PDC_VERSION_PATCH @PDC_VERSION_PATCH @
#if defined(_WIN32)
#define PDC_ABI_IMPORT __declspec(dllimport)
#define PDC_ABI_EXPORT __declspec(dllexport)
#define PDC_ABI_HIDDEN
#elif defined(__GNUC__) && (__GNUC__ >= 4)
#define PDC_ABI_IMPORT __attribute__((visibility("default")))
#define PDC_ABI_EXPORT __attribute__((visibility("default")))
#define PDC_ABI_HIDDEN __attribute__((visibility("hidden")))
#else
#define PDC_ABI_IMPORT
#define PDC_ABI_EXPORT
#define PDC_ABI_HIDDEN
#endif
#cmakedefine PDC_BUILD_SHARED_LIBS
#ifdef PDC_BUILD_SHARED_LIBS
#ifdef pdc_EXPORTS
#define PDC_EXPORT PDC_ABI_EXPORT
#else
#define PDC_EXPORT PDC_ABI_IMPORT
#endif
#else
#define PDC_EXPORT
#endif
/* TODO To be fixed
#ifdef _WIN32
typedef signed __int64 pdc_int64_t;
typedef signed __int32 pdc_int32_t;
typedef signed __int16 pdc_int16_t;
typedef signed __int8 pdc_int8_t;
typedef unsigned __int64 pdc_uint64_t;
typedef unsigned __int32 pdc_uint32_t;
typedef unsigned __int16 pdc_uint16_t;
typedef unsigned __int8 pdc_uint8_t;
#else
#include <stdint.h>
#include <stddef.h>
typedef int64_t pdc_int64_t;
typedef int32_t pdc_int32_t;
typedef int16_t pdc_int16_t;
typedef int8_t pdc_int8_t;
typedef uint64_t pdc_uint64_t;
typedef uint32_t pdc_uint32_t;
typedef uint16_t pdc_uint16_t;
typedef uint8_t pdc_uint8_t;
#endif
typedef pdc_uint64_t pdc_ptr_t;
typedef pdc_uint8_t pdc_bool_t;
#define PDC_TRUE 1
#define PDC_FALSE 0
#ifdef _WIN32
#define PDC_INLINE __inline
#else
#define PDC_INLINE __inline__
#endif
*/
#endif /* _pdc_config_H */