PDA

View Full Version : win32 platform macros?



gfunk
5th September 2007, 19:56
I'm trying to make my code portable to both mingw and VC++ under win32. I understand Q_WS_WIN is used to tell between a win32 and other platforms, but what macro should I use to properly distinguish which compiler I'm using? Because it seems like mingw can't compile a bunch of these win32 libraries that include things like atlbase.h, etc.

jpn
5th September 2007, 20:02
Q_CC_GCC (http://doc.trolltech.com/4.3/qtglobal.html#Q_CC_GNU)
Q_CC_MSVC (http://doc.trolltech.com/4.3/qtglobal.html#Q_CC_MSVC)