Honor feature macros in <inttypes.h>.
This commit is contained in:
parent
fbbb33287b
commit
ead7cc00be
|
@ -1,6 +1,6 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
||||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2013.
|
Copyright(C) Jonas 'Sortie' Termansen 2012, 2013, 2014.
|
||||||
|
|
||||||
This file is part of the Sortix C Library.
|
This file is part of the Sortix C Library.
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#if __USE_SORTIX || defined(__STDC_FORMAT_MACROS) || !defined(__cplusplus)
|
||||||
|
|
||||||
#define PRId8 __PRId8
|
#define PRId8 __PRId8
|
||||||
#define PRIi8 __PRIi8
|
#define PRIi8 __PRIi8
|
||||||
#define PRIo8 __PRIo8
|
#define PRIo8 __PRIo8
|
||||||
|
@ -199,6 +201,8 @@
|
||||||
#define SCNuMAX __SCNuMAX
|
#define SCNuMAX __SCNuMAX
|
||||||
#define SCNxMAX __SCNxMAX
|
#define SCNxMAX __SCNxMAX
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
#ifndef __wchar_t_defined
|
#ifndef __wchar_t_defined
|
||||||
|
|
Loading…
Reference in New Issue