aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/Common.h')
-rw-r--r--src/shared/Common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/Common.h b/src/shared/Common.h
index 735c57eedbe..a274c5d5a0b 100644
--- a/src/shared/Common.h
+++ b/src/shared/Common.h
@@ -130,6 +130,7 @@
#include <float.h>
+#define I32FMT "%08I32X"
#define I64FMT "%016I64X"
#define snprintf _snprintf
#define atoll __atoi64
@@ -141,6 +142,7 @@
#define stricmp strcasecmp
#define strnicmp strncasecmp
+#define I32FMT "%08X"
#define I64FMT "%016llX"
#endif
@@ -151,6 +153,8 @@
#define SI64FMTD ACE_INT64_FORMAT_SPECIFIER
#define SI64LIT(N) ACE_INT64_LITERAL(N)
+#define SIZEFMTD ACE_SIZE_T_FORMAT_SPECIFIER
+
inline float finiteAlways(float f) { return finite(f) ? f : 0.0f; }
#define atol(a) strtoul( a, NULL, 10)