]> git.mxchange.org Git - flightgear.git/blobdiff - tests/al-info.c
Non platform specific:
[flightgear.git] / tests / al-info.c
index 69dc675b16156e970b5ed4dcb9165a9f681fe2aa..13c68f2048d153db0e5998fe2365751ca16af1d8 100644 (file)
@@ -7,7 +7,9 @@
 #else
 # include <AL/al.h>
 # include <AL/alc.h>
-# include <AL/alext.h>
+# ifndef __CYGWIN__
+#  include <AL/alext.h>
+# endif
 #endif
 
 #ifndef AL_VERSION_1_1
 
 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);