mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-13 18:59:05 +00:00
Changed: used PRI*64 macro to printf and scanf int64
This commit is contained in:
parent
1e3fd381b4
commit
4688a9e79e
1 changed files with 12 additions and 0 deletions
|
@ -283,11 +283,23 @@ typedef uint64_t uint64;
|
||||||
typedef int sint; // at least 32bits (depend of processor)
|
typedef int sint; // at least 32bits (depend of processor)
|
||||||
typedef unsigned int uint; // at least 32bits (depend of processor)
|
typedef unsigned int uint; // at least 32bits (depend of processor)
|
||||||
|
|
||||||
|
// used for macro PRI*64
|
||||||
|
#define __STDC_FORMAT_MACROS
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#ifdef NL_OS_MAC
|
||||||
|
#define NL_I64 __PRI_64_LENGTH_MODIFIER__
|
||||||
|
#else
|
||||||
|
#define NL_I64 __PRI64_PREFIX
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef _LP64
|
#ifdef _LP64
|
||||||
# define NL_I64 "l"
|
# define NL_I64 "l"
|
||||||
#else
|
#else
|
||||||
# define NL_I64 "ll"
|
# define NL_I64 "ll"
|
||||||
#endif // _LP64
|
#endif // _LP64
|
||||||
|
*/
|
||||||
|
|
||||||
#endif // NL_OS_UNIX
|
#endif // NL_OS_UNIX
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue