[cfe-dev] Newby questions

Chris Lattner clattner at apple.com
Tue Sep 11 23:54:09 PDT 2007


On Sep 7, 2007, at 7:37 AM, Hartmut Kaiser wrote:

>
>>> #if defined(_WIN32) || defined(_WIN64) Windows specifics
>> here #else ..
>>> #endif
>> Please don't forget about mingw32 :) It's also running on windows.
>
> So what's the general approach to this kind of pp magic? Is there some
> existing pp constant I could use?
> And BTW, is there some config file for Clang?

Hartmut,

does #ifdef LLVM_ON_WIN32 work after #include "llvm/Config/config.h" ?

-Chris



More information about the cfe-dev mailing list