]> git.mxchange.org Git - simgear.git/commitdiff
alut pre-1.0 doesn't support aletGetError but then again, this function doesn't get...
authorehofman <ehofman>
Wed, 7 Oct 2009 07:31:14 +0000 (07:31 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 8 Oct 2009 08:17:11 +0000 (10:17 +0200)
simgear/sound/soundmgr_openal.cxx

index 9bc3e2a098fb84f6cdbcbea25936896a0eaca48f..b156b8c5230b51601a95f6769ba865fab9c2f67f 100644 (file)
@@ -458,6 +458,7 @@ bool SGSoundMgr::testForALCError(string s)
 
 bool SGSoundMgr::testForALUTError(string s)
 {
+#if defined(ALUT_API_MAJOR_VERSION) && ALUT_API_MAJOR_VERSION >= 1
     ALenum error;
     error =  alutGetError ();
     if (error != ALUT_ERROR_NO_ERROR) {
@@ -466,5 +467,6 @@ bool SGSoundMgr::testForALUTError(string s)
                                        << s);
         return true;
     }
+#endif
     return false;
 }