int tolua_Cocos2d_open ‘GL_RGB565’ was not declared

I tried to compile using the Makefile in the root directory in cocos2d-x and this is the error I got:
…/cocos2dx_support/LuaCocos2d.cpp: In function ‘int tolua_Cocos2d_open(lua_State*)’:
…/cocos2dx_support/LuaCocos2d.cpp:55765:38: error: ‘GL_RGB565’ was not declared in this scope

This is the latest code in the master branch.

nobody knows