summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-desktop.h.in8
-rw-r--r--libmate-desktop/meson.build3
2 files changed, 7 insertions, 4 deletions
diff --git a/libmate-desktop/mate-desktop.h.in b/libmate-desktop/mate-desktop.h.in
index fba608f..e63bd38 100644
--- a/libmate-desktop/mate-desktop.h.in
+++ b/libmate-desktop/mate-desktop.h.in
@@ -27,10 +27,10 @@
#define __MATE_DESKTOP_H__
#define MATE_DESKTOP_CHECK_VERSION(major,minor,micro) \
- (MATE_MAJOR > (major) || \
- (MATE_MAJOR == (major) && MATE_MINOR > (minor)) || \
- (MATE_MAJOR == (major) && MATE_MINOR == (minor) && \
- MATE_MICRO >= (micro)))
+ (@MATE_PLATFORM@ > (major) || \
+ (@MATE_PLATFORM@ == (major) && @MATE_MINOR@ > (minor)) || \
+ (@MATE_PLATFORM@ == (major) && @MATE_MINOR@ == (minor) && \
+ @MATE_MICRO@ >= (micro)))
#define MATE_DESKTOP_VERSION "@PACKAGE_VERSION@"
diff --git a/libmate-desktop/meson.build b/libmate-desktop/meson.build
index e0e94ae..4d1cc5f 100644
--- a/libmate-desktop/meson.build
+++ b/libmate-desktop/meson.build
@@ -2,6 +2,9 @@ libmdt_inc = include_directories('.')
version_conf = configuration_data()
version_conf.set('PACKAGE_VERSION', matedt_version)
+version_conf.set('MATE_PLATFORM', mate_platform)
+version_conf.set('MATE_MINOR', mate_minor)
+version_conf.set('MATE_MICRO', mate_micro)
mate_desktop_header_file = configure_file(
input: 'mate-desktop.h.in',