From: ehofman Date: Wed, 7 Oct 2009 07:31:14 +0000 (+0000) Subject: alut pre-1.0 doesn't support aletGetError but then again, this function doesn't get... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=199437e8591a6cf55cd30388405999540d227129;p=simgear.git 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 --- 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; }