diff options
Diffstat (limited to 'android/utils')
-rw-r--r-- | android/utils/system.c | 2 | ||||
-rw-r--r-- | android/utils/system.h | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/android/utils/system.c b/android/utils/system.c index e65c602..6a6a4e1 100644 --- a/android/utils/system.c +++ b/android/utils/system.c @@ -67,7 +67,7 @@ android_realloc( void* block, size_t size ) if (block2 != NULL) return block2; - fprintf(stderr, "PANIC: not enough memory to reallocate %lld bytes\n", (uint64_t)size); + fprintf(stderr, "PANIC: not enough memory to reallocate %zu bytes\n", size); exit(1); return NULL; } diff --git a/android/utils/system.h b/android/utils/system.h index 464957d..531c7eb 100644 --- a/android/utils/system.h +++ b/android/utils/system.h @@ -14,6 +14,7 @@ #include <string.h> #include <stdint.h> +#define __STDC_FORMAT_MACROS 1 #include <inttypes.h> /* for PRId64 et al. */ #include "android/utils/assert.h" @@ -173,11 +174,8 @@ extern void sleep_ms( int timeout ); #ifndef PRIx64 # define PRIx64 "llx" #endif -#ifndef PRUd64 -# define PRUd64 "llu" -#endif -#ifndef PRUx64 -# define PRUx64 "llx" +#ifndef PRIu64 +# define PRIu64 "llu" #endif /* */ |