I'm using Visual C++ 2008 Express Edition. The WIN32 preprocessor directive doesn't appear to be defined by default, so when I surround includes with #ifndef WIN32, it still includes them.
I found someone with the exact same problem below, but it was so long ago that the location of this setting has changed:
http://www.gamedev.net/community/forums/topic.asp?topic_id=418604
In VS 2008 Pro, you right-click on the project and select Properties. Then look for Preprocessor Definitions in Configuration Properties | C/C++ | Preprocessor.
Try _WIN32
instead (notice the underscore...)
From MSDN .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.