From 1383c34c9102dec25e71485a5a42e85301e9a1be Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 17 Jun 2012 21:34:57 +0000 Subject: [PATCH] Define wxGTK GTK version symbols in GTK-specific setup.h. When not using configure __WXGTKxxx__ symbols should still be defined, assume we use a recent GTK 2.x version and define all of them. Closes #14411. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/setup0.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/wx/gtk/setup0.h b/include/wx/gtk/setup0.h index 197862a574..b0d04366eb 100644 --- a/include/wx/gtk/setup0.h +++ b/include/wx/gtk/setup0.h @@ -1645,4 +1645,16 @@ #define wxUSE_CRASHREPORT 1 /* --- end MSW options --- */ +// GTK-specific options used when not using configure. As we can't test for the +// exact GTK version (without including GTK+ headers that we don't want to +// include from our own public headers), just assume a recent GTK 2.x. +#define __WXGTK20__ +#define __WXGTK26__ +#define __WXGTK210__ +#define __WXGTK218__ + +// Alternatively, all the above symbols could be commented and this one +// uncommented if using GTK+ 3. +//#define __WXGTK30__ + #endif // _WX_SETUP_H_ -- 2.50.0