Newer versions of gcc define __INT64_C and __UINT64_C, so avoid
redefining them if gcc provides them.
This commit is contained in:
parent
8f38cafe69
commit
09ea56b1ca
@ -66,6 +66,7 @@
|
|||||||
|
|
||||||
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
|
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
|
||||||
|
|
||||||
|
#ifndef __INT64_C
|
||||||
#ifdef __mips_n64
|
#ifdef __mips_n64
|
||||||
#define __INT64_C(c) (c ## L)
|
#define __INT64_C(c) (c ## L)
|
||||||
#define __UINT64_C(c) (c ## UL)
|
#define __UINT64_C(c) (c ## UL)
|
||||||
@ -73,6 +74,7 @@
|
|||||||
#define __INT64_C(c) (c ## LL)
|
#define __INT64_C(c) (c ## LL)
|
||||||
#define __UINT64_C(c) (c ## ULL)
|
#define __UINT64_C(c) (c ## ULL)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ISO/IEC 9899:1999
|
* ISO/IEC 9899:1999
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
|
|
||||||
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
|
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
|
||||||
|
|
||||||
|
#ifndef __INT64_C
|
||||||
#ifdef __LP64__
|
#ifdef __LP64__
|
||||||
#define __INT64_C(c) (c ## L)
|
#define __INT64_C(c) (c ## L)
|
||||||
#define __UINT64_C(c) (c ## UL)
|
#define __UINT64_C(c) (c ## UL)
|
||||||
@ -72,6 +73,7 @@
|
|||||||
#define __INT64_C(c) (c ## LL)
|
#define __INT64_C(c) (c ## LL)
|
||||||
#define __UINT64_C(c) (c ## ULL)
|
#define __UINT64_C(c) (c ## ULL)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ISO/IEC 9899:1999
|
* ISO/IEC 9899:1999
|
||||||
|
Loading…
x
Reference in New Issue
Block a user