X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsoundmgr_openal.cxx;h=b156b8c5230b51601a95f6769ba865fab9c2f67f;hb=199437e8591a6cf55cd30388405999540d227129;hp=9bc3e2a098fb84f6cdbcbea25936896a0eaca48f;hpb=bcccd06cee0d2372df5b2d40cb4473d3156f3668;p=simgear.git 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; }