diff options
author | Chris Robinson <[email protected]> | 2014-04-19 09:42:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-19 09:42:03 -0700 |
commit | bb969c3cccae159049adc20b2e13a17556331aae (patch) | |
tree | 04195592561e9e0acb19cf48bfaa42b0c05234d4 /OpenAL32 | |
parent | 043e25b6024119c28eb8d6d4f057ab01847a3b95 (diff) |
Add a SZFMT macro for a size_t string formatter
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 8b66e4e7..44e36625 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -31,6 +31,15 @@ #endif #endif +#if defined(_WIN64) +#define SZFMT "%I64u" +#elif defined(_WIN32) +#define SZFMT "%d" +#else +#define SZFMT "%zu" +#endif + + #include "align.h" #include "atomic.h" #include "uintmap.h" |