diff --git a/cocos/audio/include/AudioMacros.h b/cocos/audio/include/AudioMacros.h index 46f6d2f078..61b020f42b 100644 --- a/cocos/audio/include/AudioMacros.h +++ b/cocos/audio/include/AudioMacros.h @@ -62,7 +62,7 @@ #if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG > 0 #define CHECK_AL_ERROR_DEBUG() \ do { \ - GLenum __error = alGetError(); \ + ALenum __error = alGetError(); \ if (__error) { \ ALOGE("OpenAL error 0x%04X in %s %s %d\n", __error, __FILE__, __FUNCTION__, __LINE__); \ } \