Added #include <stdint.h> because the existing attempt to define if needed is causing redefinition errors in our complex project involving both pure C and C++ code.

master
Eric Wing 2012-10-30 18:28:35 -07:00 committed by Marc Salem
parent ed15aa6ab2
commit 5d0763b364
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ typedef float ALfloat;
typedef double ALdouble;
#ifdef OPENAL_FIXED_POINT
/* Apportable tries to define int64_t and int32_t if it thinks it is needed.
* But this is breaking in a complex project involving both pure C and C++
* something is triggering redefinition errors. The workaround seems to be just using stdint.h.
*/
#include <stdint.h>
/** Types and Macros for fixed-point math */
#ifndef INT64_MAX
typedef long long int64_t;