X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fal-info.c;h=9969fcf3b5f1c027de4f0c93a6dfc7985bd41ede;hb=988de9dbca8bc046fb0f1df4fef5bfe07355c3a6;hp=db411453fd728c774665fcde042da7a58c145bf4;hpb=dff558dcec349aa1cf63497912a72799c1f33774;p=flightgear.git diff --git a/tests/al-info.c b/tests/al-info.c index db411453f..9969fcf3b 100644 --- a/tests/al-info.c +++ b/tests/al-info.c @@ -1,9 +1,26 @@ #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 @@ -13,9 +30,8 @@ int main() ALCint data[MAX_DATA]; ALCdevice *device = NULL; ALCcontext *context = NULL; - const ALCchar *s; + const unsigned char *s; ALCenum error; - ALCboolean ret; device = alcOpenDevice(NULL); if (device == NULL) @@ -46,7 +62,7 @@ int main() alcGetError(device); printf("\n"); - if (alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") == AL_TRUE) + if (alcIsExtensionPresent(NULL, (unsigned char *)"ALC_ENUMERATION_EXT") == AL_TRUE) { s = alcGetString(NULL, ALC_DEVICE_SPECIFIER); printf("ALC_DEVICE_SPECIFIER = \"%s\"\n", s); @@ -93,7 +109,7 @@ int main() } #endif - ret = alcCloseDevice(device); + alcCloseDevice(device); - return ret; + return 0; }