X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fal-info.c;h=13c68f2048d153db0e5998fe2365751ca16af1d8;hb=26859ad4b96aaa8ec901c5c8f9de57105247fde5;hp=69dc675b16156e970b5ed4dcb9165a9f681fe2aa;hpb=f2f960f4f46e1a59e41f27756934fc56065d423d;p=flightgear.git diff --git a/tests/al-info.c b/tests/al-info.c index 69dc675b1..13c68f204 100644 --- a/tests/al-info.c +++ b/tests/al-info.c @@ -7,7 +7,9 @@ #else # include # include -# include +# ifndef __CYGWIN__ +# include +# endif #endif #ifndef AL_VERSION_1_1 @@ -24,11 +26,10 @@ int main() { - ALCint i,j; ALCint data[MAX_DATA]; ALCdevice *device = NULL; ALCcontext *context = NULL; - const unsigned char *s; + const ALchar *s; ALCenum error; device = alcOpenDevice(NULL); @@ -60,7 +61,7 @@ int main() alcGetError(device); printf("\n"); - if (alcIsExtensionPresent(NULL, (unsigned char *)"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);