X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fal-info.c;h=13c68f2048d153db0e5998fe2365751ca16af1d8;hb=26cd4f92c5b2b02faaf617229b95c4b9505ff378;hp=db411453fd728c774665fcde042da7a58c145bf4;hpb=dff558dcec349aa1cf63497912a72799c1f33774;p=flightgear.git diff --git a/tests/al-info.c b/tests/al-info.c index db411453f..13c68f204 100644 --- a/tests/al-info.c +++ b/tests/al-info.c @@ -1,21 +1,36 @@ #include -#include -#include -#include +#ifdef __APPLE__ +# include +# include +#else +# include +# include +# ifndef __CYGWIN__ +# include +# endif +#endif + +#ifndef AL_VERSION_1_1 +# ifdef __APPLE__ +# include +# include +#else +# include +# include +# endif +#endif #define MAX_DATA 16 int main() { - ALCint i,j; ALCint data[MAX_DATA]; ALCdevice *device = NULL; ALCcontext *context = NULL; - const ALCchar *s; + const ALchar *s; ALCenum error; - ALCboolean ret; device = alcOpenDevice(NULL); if (device == NULL) @@ -46,7 +61,7 @@ int main() alcGetError(device); printf("\n"); - if (alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") == AL_TRUE) + if (alcIsExtensionPresent(NULL, (const ALchar *)"ALC_ENUMERATION_EXT") == AL_TRUE) { s = alcGetString(NULL, ALC_DEVICE_SPECIFIER); printf("ALC_DEVICE_SPECIFIER = \"%s\"\n", s); @@ -93,7 +108,7 @@ int main() } #endif - ret = alcCloseDevice(device); + alcCloseDevice(device); - return ret; + return 0; }