diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-12-25 17:16:41 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-12-25 17:16:41 +0000 |
| commit | 8e2119c2042debcf51998631e64809e627b148c2 (patch) | |
| tree | c69d09bf78d648b3984cea7aa462dd751235ebfd /config.h.cmake | |
| parent | Name a few more widgets. Minor cleanup. (diff) | |
| download | inkscape-8e2119c2042debcf51998631e64809e627b148c2.tar.gz inkscape-8e2119c2042debcf51998631e64809e627b148c2.zip | |
Use a macro for GtkMM version checks
Diffstat (limited to 'config.h.cmake')
| -rw-r--r-- | config.h.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake index f341b745b..70422fafb 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -225,6 +225,31 @@ /* Do we want experimental, unsupported, unguaranteed, etc., LivePathEffects enabled? */ #cmakedefine LPE_ENABLE_TEST_EFFECTS 1 +/** + * Check GtkMM version + * + * This is adapted from the upstream Gtk+ macro for use with GtkMM + * + * @todo Perhaps this should be in its own header? However, this is likely to + * be used very frequently, so It would be annoying to have to add another + * header inclusion in many files + * + * + * @major: major version (e.g. 1 for version 1.2.5) + * @minor: minor version (e.g. 2 for version 1.2.5) + * @micro: micro version (e.g. 5 for version 1.2.5) + * + * Returns %TRUE if the version of the GTK+ header files + * is the same as or newer than the passed-in version. + * + * Returns: %TRUE if GTK+ headers are new enough + */ +#define GTKMM_CHECK_VERSION(major,minor,micro) \ + (GTKMM_MAJOR_VERSION > (major) || \ + (GTKMM_MAJOR_VERSION == (major) && GTKMM_MINOR_VERSION > (minor)) || \ + (GTKMM_MAJOR_VERSION == (major) && GTKMM_MINOR_VERSION == (minor) && \ + GTKMM_MICRO_VERSION >= (micro))) + #endif /* _CONFIG_H_ */ |
