From 7f0c6629b9ec1ec1cf11dfbd4a6bba43d3cce9e2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 24 Dec 2009 15:41:45 -0800 Subject: Use a 64-bit value to scale potentially-large numbers --- OpenAL32/Include/alMain.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index b33f797b..fc9cf71d 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -13,6 +13,21 @@ #include "AL/alc.h" #include "AL/alext.h" +#if defined(HAVE_STDINT_H) +#include +typedef int64_t ALint64; +typedef uint64_t ALuint64; +#elif defined(HAVE___INT64) +typedef __int64 ALint64; +typedef unsigned __int64 ALuint64; +#elif (SIZEOF_LONG == 8) +typedef long ALint64; +typedef unsigned long ALuint64; +#elif (SIZEOF_LONG_LONG == 8) +typedef long long ALint64; +typedef unsigned long long ALuint64; +#endif + #ifdef _WIN32 #ifndef _WIN32_WINNT -- cgit v1.2.3