summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2023-10-05 11:47:58 +0200
committermouse <[email protected]>2023-10-05 21:54:04 +0800
commit079950d33769e083d5251a254787e61d11345fb2 (patch)
tree5ec3b01668a061768b11d24a5a00624d6dc6516a /libmate-desktop
parent27c71da25fd0b6b70ca2eef600ec82ea13d68e01 (diff)
downloadmate-desktop-079950d33769e083d5251a254787e61d11345fb2.tar.bz2
mate-desktop-079950d33769e083d5251a254787e61d11345fb2.tar.xz
Fix MATE_DESKTOP_CHECK_VERSION
Not that I know anybody that wants it though.
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',