]> Dogcows Code - chaz/openbox/blobdiff - version.h.in
Add _OB_VERSION and _OB_APP_ROLE/CLASS/NAME/TYPE
[chaz/openbox] / version.h.in
index 007f2f9d99432bf5d98847249d024ab84abe0bc8..70cfcec61c33b1c514e93b1d80106c2103c4ab0b 100644 (file)
@@ -1 +1,15 @@
-#define OPENBOX_VERSION "@VERSION@"
+#ifndef ob__version_h
+#define ob__version_h
+
+#define OB_MAJOR_VERSION @OB_MAJOR_VERSION@
+#define OB_MINOR_VERSION @OB_MINOR_VERSION@
+#define OB_MICRO_VERSION @OB_MICRO_VERSION@
+#define OB_VERSION "@OB_VERSION@"
+
+#define OB_CHECK_VERSION(major,minor,micro) \
+    (OB_MAJOR_VERSION > (major) || \
+     (OB_MAJOR_VERSION == (major) && OB_MINOR_VERSION > (minor)) || \
+     (OB_MAJOR_VERSION == (major) && OB_MINOR_VERSION == (minor) && \
+      OB_MICRO_VERSION >= (micro)))
+
+#endif
This page took 0.020167 seconds and 4 git commands to generate.