I can’t get CW to compile even simple GLUT pgms. Every attempt fails with CW spitting out an error about “preprocessor #error directive” in excpt.h (included by windows.h).
Just adding this before you include windows.h should work.
#define _WIN32
It seems weird that CW wouldn’t do that in your project for you. VC++ has settings where you can add whatever #defines you want to the project. I would assume CW has something similiar so you can try to add _WIN32 there too.