summaryrefslogtreecommitdiff
path: root/3rdparty/plibsys/src/plibsysconfig.h.in
blob: db060208b4f012804de4789a1c50694d70aff9d8 (plain)
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
76
#ifndef PLIBSYS_HEADER_PLIBSYSCONFIG_H
#define PLIBSYS_HEADER_PLIBSYSCONFIG_H

#define PLIBSYS_VERSION_MAJOR @PLIBSYS_VERSION_MAJOR@
#define PLIBSYS_VERSION_MINOR @PLIBSYS_VERSION_MINOR@
#define PLIBSYS_VERSION_PATCH @PLIBSYS_VERSION_PATCH@
#define PLIBSYS_VERSION_STR "@PLIBSYS_VERSION@"
#define PLIBSYS_VERSION @PLIBSYS_VERSION_NUM@

#cmakedefine PLIBSYS_NEED_WINDOWS_H
#cmakedefine PLIBSYS_NEED_FLOAT_H
#cmakedefine PLIBSYS_NEED_LIMITS_H
#cmakedefine PLIBSYS_NEED_VALUES_H
#cmakedefine PLIBSYS_NEED_PTHREAD_NP_H
#cmakedefine PLIBSYS_IS_BIGENDIAN
#cmakedefine PLIBSYS_SIZEOF_SAFAMILY_T @PLIBSYS_SIZEOF_SAFAMILY_T@
#cmakedefine PLIBSYS_VA_COPY @PLIBSYS_VA_COPY@

#define PLIBSYS_NTDDI_VERSION_FROM_WIN32_WINNT2(ver)    ver##0000
#define PLIBSYS_NTDDI_VERSION_FROM_WIN32_WINNT(ver)     PLIBSYS_NTDDI_VERSION_FROM_WIN32_WINNT2(ver)

#ifdef PLIBSYS_NEED_WINDOWS_H
#  ifndef _WIN32_WINNT
#    define _WIN32_WINNT 0x501
#  endif
#  ifndef NTDDI_VERSION
#    define NTDDI_VERSION PLIBSYS_NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
#  endif
#  include <winsock2.h>
#  include <ws2tcpip.h>
#  include <windows.h>
#endif

#include <pmacros.h>

#ifdef PLIBSYS_NEED_FLOAT_H
#  include <float.h>
#endif

#ifdef PLIBSYS_NEED_LIMITS_H
#  include <limits.h>
#endif

#ifdef PLIBSYS_NEED_VALUES_H
#  include <values.h>
#endif

P_BEGIN_DECLS

#define P_MINFLOAT    @PLIBSYS_FLOAT_MIN@
#define P_MAXFLOAT    @PLIBSYS_FLOAT_MAX@
#define P_MINDOUBLE   @PLIBSYS_DOUBLE_MIN@
#define P_MAXDOUBLE   @PLIBSYS_DOUBLE_MAX@
#define P_MINSHORT    @PLIBSYS_SHORT_MIN@
#define P_MAXSHORT    @PLIBSYS_SHORT_MAX@
#define P_MAXUSHORT   @PLIBSYS_USHORT_MAX@
#define P_MININT      @PLIBSYS_INT_MIN@
#define P_MAXINT      @PLIBSYS_INT_MAX@
#define P_MAXUINT     @PLIBSYS_UINT_MAX@
#define P_MINLONG     @PLIBSYS_LONG_MIN@
#define P_MAXLONG     @PLIBSYS_LONG_MAX@
#define P_MAXULONG    @PLIBSYS_ULONG_MAX@

@PLIBSYS_SIZEOF_VOID_P_CODE@
@PLIBSYS_SIZEOF_SIZE_T_CODE@
@PLIBSYS_SIZEOF_LONG_CODE@

#ifdef PLIBSYS_IS_BIGENDIAN
#  define P_BYTE_ORDER P_BIG_ENDIAN
#else
#  define P_BYTE_ORDER P_LITTLE_ENDIAN
#endif

P_END_DECLS

#endif /* PLIBSYS_HEADER_PLIBSYSCONFIG_H */