Cleanup: Use C99 format string for the SIZET_FORMAT macro

All platforms support the proper format string and it's already used in
various other places.

Differential Revision: https://developer.blender.org/D11460
This commit is contained in:
Jesse Yurkovich 2021-07-12 20:32:37 -07:00
parent 2e7e7a6fb6
commit dc679f6247
1 changed files with 2 additions and 8 deletions

View File

@ -53,14 +53,8 @@ size_t malloc_usable_size(void *ptr);
# undef USE_MALLOC_USABLE_SIZE
#endif
/* Blame Microsoft for LLP64 and no inttypes.h, quick workaround needed: */
#if defined(WIN64)
# define SIZET_FORMAT "%I64u"
# define SIZET_ARG(a) ((unsigned long long)(a))
#else
# define SIZET_FORMAT "%lu"
# define SIZET_ARG(a) ((unsigned long)(a))
#endif
#define SIZET_FORMAT "%zu"
#define SIZET_ARG(a) ((size_t)(a))
#define SIZET_ALIGN_4(len) ((len + 3) & ~(size_t)3)