diff options
author | Chris Robinson <[email protected]> | 2018-05-15 01:20:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-05-15 01:20:39 -0700 |
commit | 197e88cdcc62ac1c9e8be2240c52c4f108ac27b6 (patch) | |
tree | 2d0c42563e77612bba4dc51caf70358ffd54f083 /OpenAL32/Include | |
parent | 4ac488991265ce212109e7b419f18399d3b75ee9 (diff) |
Avoid using unsigned values for signed
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 14deb227..886f3ab1 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -115,6 +115,16 @@ typedef ALuint64SOFT ALuint64; #endif #endif +#ifndef I64 +#if defined(_MSC_VER) +#define I64(x) ((ALint64)(x##i64)) +#elif SIZEOF_LONG == 8 +#define I64(x) ((ALint64)(x##l)) +#elif SIZEOF_LONG_LONG == 8 +#define I64(x) ((ALint64)(x##ll)) +#endif +#endif + /* Define a CTZ64 macro (count trailing zeros, for 64-bit integers). The result * is *UNDEFINED* if the value is 0. */ |