forked from OSchip/llvm-project
For VC++, define the ?INT*_C macros only it they are not yet defined.
Some compatibility updates like the Boost TR1 compatibility headers define them. Patch contributed by OvermindDL1! llvm-svn: 90828
This commit is contained in:
parent
60043f5ce6
commit
15c4bc673a
|
@ -118,14 +118,33 @@ typedef signed int ssize_t;
|
||||||
#define INT32_MAX 2147483647
|
#define INT32_MAX 2147483647
|
||||||
#define INT32_MIN -2147483648
|
#define INT32_MIN -2147483648
|
||||||
#define UINT32_MAX 4294967295U
|
#define UINT32_MAX 4294967295U
|
||||||
#define INT8_C(C) C
|
/* Certain compatibility updates to VC++ introduce the `cstdint'
|
||||||
#define UINT8_C(C) C
|
* header, which defines the INT*_C macros. On default installs they
|
||||||
#define INT16_C(C) C
|
* are absent. */
|
||||||
#define UINT16_C(C) C
|
#ifndef INT8_C
|
||||||
#define INT32_C(C) C
|
# define INT8_C(C) C
|
||||||
#define UINT32_C(C) C ## U
|
#endif
|
||||||
#define INT64_C(C) ((int64_t) C ## LL)
|
#ifndef UINT8_C
|
||||||
#define UINT64_C(C) ((uint64_t) C ## ULL)
|
# define UINT8_C(C) C
|
||||||
|
#endif
|
||||||
|
#ifndef INT16_C
|
||||||
|
# define INT16_C(C) C
|
||||||
|
#endif
|
||||||
|
#ifndef UINT16_C
|
||||||
|
# define UINT16_C(C) C
|
||||||
|
#endif
|
||||||
|
#ifndef INT32_C
|
||||||
|
# define INT32_C(C) C
|
||||||
|
#endif
|
||||||
|
#ifndef UINT32_C
|
||||||
|
# define UINT32_C(C) C ## U
|
||||||
|
#endif
|
||||||
|
#ifndef INT64_C
|
||||||
|
# define INT64_C(C) ((int64_t) C ## LL)
|
||||||
|
#endif
|
||||||
|
#ifndef UINT64_C
|
||||||
|
# define UINT64_C(C) ((uint64_t) C ## ULL)
|
||||||
|
#endif
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
/* Set defaults for constants which we cannot find. */
|
/* Set defaults for constants which we cannot find. */
|
||||||
|
|
Loading…
Reference in New Issue