Merge pull request #6945 from John-He-928/mingw-build

Fix MinGW build
[ci skip]
CCLOGINFO compilation fix
restore COCOS_DEBUG macro
Merge pull request #7154 from Mazyod/fix-cc-log-info

CCLOGINFO compilation fix