aboutsummaryrefslogtreecommitdiffstats
path: root/android/utils/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'android/utils/system.h')
-rw-r--r--android/utils/system.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/android/utils/system.h b/android/utils/system.h
index 5053786..c8163c6 100644
--- a/android/utils/system.h
+++ b/android/utils/system.h
@@ -14,6 +14,7 @@
#include <string.h>
#include <stdint.h>
+#include <inttypes.h> /* for PRId64 et al. */
#include "android/utils/assert.h"
/* internal helpers */
@@ -161,6 +162,18 @@ extern void restore_sigalrm( signal_state_t *state );
extern void sleep_ms( int timeout );
+/** FORMATTING int64_t in printf() statements
+ **
+ ** Normally defined in <inttypes.h> except on Windows and maybe others.
+ **/
+
+#ifndef PRId64
+# define PRId64 "lld"
+#endif
+#ifndef PRIx64
+# define PRIx64 "llx"
+#endif
+
/* */
#endif /* _ANDROID_UTILS_SYSTEM_H */