From eb7d1e22e5b644341e62f21f1ab711dee20c1977 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 28 May 2020 22:56:15 +0200 Subject: simplify u64 --- include/types.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'include') diff --git a/include/types.h b/include/types.h index d1e44617..77b7ae74 100644 --- a/include/types.h +++ b/include/types.h @@ -54,24 +54,7 @@ typedef uint32_t u32; #define FS_OPT_SET_MAPSIZE(x) \ (x <= 1 || x > FS_OPT_MAX_MAPSIZE ? 0 : ((x - 1) << 1)) -/* - - Ugh. There is an unintended compiler / glibc #include glitch caused by - combining the u64 type an %llu in format strings, necessitating a workaround. - - In essence, the compiler is always looking for 'unsigned long long' for %llu. - On 32-bit systems, the u64 type (aliased to uint64_t) is expanded to - 'unsigned long long' in , so everything checks out. - - But on 64-bit systems, it is #ifdef'ed in the same file as 'unsigned long'. - - */ - -#ifdef __LP64__ typedef unsigned long long u64; -#else -typedef uint64_t u64; -#endif /* ^__x86_64__ */ typedef int8_t s8; typedef int16_t s16; -- cgit 1.4.1