]> Dogcows Code - chaz/openbox/commitdiff
add version info the library headers
authorDana Jansens <danakj@orodu.net>
Mon, 27 Oct 2003 20:11:14 +0000 (20:11 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 27 Oct 2003 20:11:14 +0000 (20:11 +0000)
Makefile.am
configure.ac
parser/parse.h
render/render.h
version.h.in [new file with mode: 0644]

index e111dab58b015171f5424a0f0970820656d56948..7286ca37b662fe3c939ec02aca54c3a3532c1dd9 100644 (file)
@@ -260,7 +260,8 @@ dist_thebear_theme_DATA = \
 pubinclude_HEADERS = \
        render/render.h \
        render/theme.h \
-       parser/parse.h
+       parser/parse.h \
+       version.h
 
 nodist_pkgconfig_DATA = \
        render/obrender-3.0.pc \
index 1cec49e1cd4f3f8f82bb12d78d30f85b56c4bace..982c3bb56fe058eafec6bb8c71b1a1fccc15bfd7 100644 (file)
@@ -113,6 +113,7 @@ AC_CONFIG_FILES([
   po/Makefile.in
   render/obrender-3.0.pc
   parser/obparser-3.0.pc
+  version.h
 ])
 AC_OUTPUT
 
index 99780113d75a7e7b6ad4453f88d87b5ebad08d42..da754cbe29236d0e3b2abe7afae19f7d1ecaa7d3 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef __parse_h
 #define __parse_h
 
+#include "version.h"
+
 #include <libxml/parser.h>
 #include <glib.h>
 
index 3e76ed8b97dc8e9c5593686ddd439066c11b832b..ab481b40dd6de5f2a6b89b4f2bb7e7d8a55261d2 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef __render_h
 #define __render_h
 
+#include "version.h"
+
 #include <X11/Xlib.h> /* some platforms dont include this as needed for Xft */
 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
 #include <X11/Xft/Xft.h>
diff --git a/version.h.in b/version.h.in
new file mode 100644 (file)
index 0000000..da3f02e
--- /dev/null
@@ -0,0 +1,15 @@
+#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_MAJOR_VERSION.OB_MINOR_VERSION.OB_MICRO_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.029161 seconds and 4 git commands to generate.