winegcc preprocessor macro containing wine version?

Robert McDonald rmcdonald at bittorrent.com
Tue Mar 8 11:58:25 CST 2011


I want to be able to define a structure if I'm compiling with Wine 1.2.2 
but not with Wine 1.3.15, since the structure definition exists in the 
latter but not the former.  Is there a preprocessor macro pre-defined by 
winegcc that holds the Wine version?  Maybe that's not the best 
long-term solution but that will help for awhile.

#if defined ...?
typedef struct tagTASKDIALOG_BUTTON {
   int    nButtonID;
   ctstr pszButtonText;
} TASKDIALOG_BUTTON, MsgBoxOption;
#else
typedef TASKDIALOG_BUTTON MsgBoxOption;
#endif

-- 
Robert McDonald
BitTorrent, Inc.



More information about the wine-devel mailing list