VC6 preprocessor symbol VC6 preprocessor symbol gtada (Programmer) (OP) 27 Jul 00 15:54 I'm working on a cross-platform project. What I need is the preprocessor symbol for Visual C++. For example, VC doesn't seem to have unistd.h, so I have to do something similar to this: #ifdef [VC's symbol here] #include <direct.h> #endif Any help? Thanks, Greg RE: VC6 preprocessor symbol palbano (Programmer) 28 Jul 00 00:59 Dear Greg,Well I wouldn't think you would have either WIN32 or _WINDOWS defined.Hope this helps-pete RE: VC6 preprocessor symbol gtada (Programmer) (OP) 28 Jul 00 01:11 Well, it has to be VC6 specific because the project must compile on CodeWarrior for PC also, so I don't believe your solution would work. Hmmm... I can't seem to find anything in the help files, maybe there isn't a symbol for VC6? RE: VC6 preprocessor symbol palbano (Programmer) 29 Jul 00 00:00 Dear Greg,Is there some reason you can't define your own symbol?-pete RE: VC6 preprocessor symbol gtada (Programmer) (OP) 29 Jul 00 04:27 Well, no. But, it's just a convenience. Since I am collaborating with two other programmers, I don't want to keep changing the value of the symbol (because each time they'll have to change it, commit the code, I'll update it, and then I'll have to change it back). If there was something predefined, it would make it easier. However, I will admit my "green-ness", so if you have an easy solution that won't inconvenience the other programmers, please let me know. Thanks, PalbanoP.S. Actually, I just found the symbol _MSC_VER, thanks for the help though!