Even more linux oal fixes

This commit is contained in:
Elias Naur 2002-12-14 13:52:25 +00:00
parent 102757c802
commit 434497c7bd
1 changed files with 37 additions and 3 deletions

View File

@ -53,6 +53,9 @@ extern "C" {
#define ALCAPI __declspec(dllimport) #define ALCAPI __declspec(dllimport)
#endif #endif
typedef struct ALCdevice_struct ALCdevice;
typedef struct ALCcontext_struct ALCcontext;
#define ALCAPIENTRY __cdecl #define ALCAPIENTRY __cdecl
#else #else
#ifdef TARGET_OS_MAC #ifdef TARGET_OS_MAC
@ -62,6 +65,40 @@ extern "C" {
#endif #endif
#define ALCAPI #define ALCAPI
#define ALCAPIENTRY #define ALCAPIENTRY
/** ALC boolean type. */
typedef char ALCboolean;
/** ALC 8bit signed byte. */
typedef char ALCbyte;
/** ALC 8bit unsigned byte. */
typedef unsigned char ALCubyte;
/** ALC 16bit signed short integer type. */
typedef short ALCshort;
/** ALC 16bit unsigned short integer type. */
typedef unsigned short ALCushort;
/** ALC 32bit unsigned integer type. */
typedef unsigned ALCuint;
/** ALC 32bit signed integer type. */
typedef int ALCint;
/** ALC 32bit floating point type. */
typedef float ALCfloat;
/** ALC 64bit double point type. */
typedef double ALCdouble;
/** ALC 32bit type. */
typedef unsigned int ALCsizei;
/** ALC void type */
typedef void ALCvoid;
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
@ -100,9 +137,6 @@ DEFINE_GUID(DSPROPSETID_EAX20_BufferProperties,
#define INITGUID #define INITGUID
#define OPENAL #define OPENAL
typedef struct ALCdevice_struct ALCdevice;
typedef struct ALCcontext_struct ALCcontext;
int InitializeOpenAL(); int InitializeOpenAL();
void DeInitializeOpenAL(); void DeInitializeOpenAL();