KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am compiling under Linux (GCC 4.4.2) and Windows VS C++ Express Edition 2008 I am currently compiling under Windows XP Pro 32 bit, and have added this to my source code. #if defined( WIN32 ) /* Do windows stuff here */ #endif However, the code in the if statement is disabled (grayed out). However if I do the following: #if defined( _MSC_VER ) /* Do windows stuff here */ #endif The if statement code is enabled. I am just wondering, what should I be using. I have seen many programmers use WIN32. However, doesn't seem to work for me. Should I be using _MSC_VER instead? Many thanks for any advice,
Tags (comma-separated)
Save Edits
Cancel