[cfe-dev] Newby questions

Hartmut Kaiser hartmut.kaiser at gmail.com
Wed Sep 12 08:39:05 PDT 2007


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.

Regards Hartmut




More information about the cfe-dev mailing list