winegcc preprocessor macro containing wine version?

Roderick Colenbrander thunderbird2k at
Tue Mar 8 16:08:03 CST 2011

On Tue, Mar 8, 2011 at 10:03 PM, Dan Kegel <dank at> wrote:
> Robert McDonald asked:
>> 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?
> #include "config.h"
> gives you PACKAGE_VERSION, but that's a string.
> Looking at 'git blame commctrl.h, I see that MCM_SETCALENDARBORDER
> is a preprocessor symbol of similar vintage to TASKDIALOG_BUTTON,
> testing for that should suffice.
> (But Wine doesn't implement task dialogs, hope you're not expecting
> them to work.  There has been some interest in implementing it,
> and some code is floating around, but I haven't heard anything concrete yet.)
> - Dan

I'm not familiar with your build system, but what a lot of projects do
(including Wine) to check if a function is present is to perform a
tiny compile test during 'configure'. That's also the type of solution
I would try to search for instead of relying on a number.


More information about the wine-devel mailing list