Define wxUSE_CAIRO in wx/chkconf.h to ensure that it's always defined.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 27 Nov 2009 21:06:03 +0000 (21:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 27 Nov 2009 21:06:03 +0000 (21:06 +0000)
commit6c99dbd55e7a8ee6d2978bf7ef1b31e59b326768
tree29206c5e8b1a8fbfd14fc882f7c6b9e4d4ddf8de
parenta8f9fe13aa1ba4ba9e090a79420af5f4889b2365
Define wxUSE_CAIRO in wx/chkconf.h to ensure that it's always defined.

wxUSE_CAIRO used to be defined only in wx/cairo.h but this header wasn't
included by src/common/dcgraph.cpp so the code there was compiled as if we
were not using Cairo even when we were (thanks g++ for the warning).

Define it in wx/chkconf.h (included from wx/defs.h, i.e. always) now to ensure
that not only this bug is fixed but also that it can't happen any more.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/cairo.h
include/wx/chkconf.h
src/generic/graphicc.cpp