Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/cmlibrhash/librhash/ustd.h
3150 views
1
/* ustd.h common macros and includes */
2
#ifndef LIBRHASH_USTD_H
3
#define LIBRHASH_USTD_H
4
5
/* Include KWSys Large File Support configuration. */
6
#include <cmsys/Configure.h>
7
8
#if defined(_MSC_VER)
9
# pragma warning(push,1)
10
#endif
11
12
#include <cm3p/kwiml/int.h>
13
14
#ifndef KWIML_INT_HAVE_INT64_T
15
# define int64_t KWIML_INT_int64_t
16
#endif
17
#ifndef KWIML_INT_HAVE_INT32_T
18
# define int32_t KWIML_INT_int32_t
19
#endif
20
#ifndef KWIML_INT_HAVE_INT16_T
21
# define int16_t KWIML_INT_int16_t
22
#endif
23
#ifndef KWIML_INT_HAVE_INT8_T
24
# define int8_t KWIML_INT_int8_t
25
#endif
26
#ifndef KWIML_INT_HAVE_UINT64_T
27
# define uint64_t KWIML_INT_uint64_t
28
#endif
29
#ifndef KWIML_INT_HAVE_UINT32_T
30
# define uint32_t KWIML_INT_uint32_t
31
#endif
32
#ifndef KWIML_INT_HAVE_UINT16_T
33
# define uint16_t KWIML_INT_uint16_t
34
#endif
35
#ifndef KWIML_INT_HAVE_UINT8_T
36
# define uint8_t KWIML_INT_uint8_t
37
#endif
38
39
#include <stddef.h>
40
41
#if 0
42
#if _MSC_VER > 1000
43
# include <stddef.h> /* size_t for vc6.0 */
44
45
# if _MSC_VER >= 1600
46
/* Visual Studio >= 2010 has stdint.h */
47
# include <stdint.h>
48
# else
49
/* vc6.0 has bug with __int8, so using char instead */
50
typedef signed char int8_t;
51
typedef signed __int16 int16_t;
52
typedef signed __int32 int32_t;
53
typedef signed __int64 int64_t;
54
typedef unsigned char uint8_t;
55
typedef unsigned __int16 uint16_t;
56
typedef unsigned __int32 uint32_t;
57
typedef unsigned __int64 uint64_t;
58
# endif /* _MSC_VER >= 1600 */
59
60
/* disable warnings: The POSIX name for this item is deprecated. Use the ISO C++ conformant name. */
61
# pragma warning(disable : 4996)
62
63
#else /* _MSC_VER > 1000 */
64
65
# include <stdint.h>
66
# include <unistd.h>
67
68
#endif /* _MSC_VER > 1000 */
69
#endif
70
71
#endif /* LIBRHASH_USTD_H */
72
73