[cfe-dev] Newby questions

Chris Lattner clattner at apple.com
Wed Sep 12 10:21:26 PDT 2007


On Sep 12, 2007, at 8:39 AM, Hartmut Kaiser wrote:

> Chris,
>
>>>>> #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?
>>
>> does #ifdef LLVM_ON_WIN32 work after #include "llvm/Config/ 
>> config.h" ?
>
> Sure, this does work. Thanks.

Nice, thanks!

-Chris



More information about the cfe-dev mailing list