From 199437e8591a6cf55cd30388405999540d227129 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 7 Oct 2009 07:31:14 +0000 Subject: [PATCH] alut pre-1.0 doesn't support aletGetError but then again, this function doesn't get called in that case either so just comment it out at build time --- simgear/sound/soundmgr_openal.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 9bc3e2a0..b156b8c5 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -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; } -- 2.39.5