summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-03-16 12:46:41 (GMT)
committerThomas Graf <tgraf@suug.ch>2011-03-16 12:46:41 (GMT)
commitd8d67c0a4c348837ed3c3f8377b1f8a4e5574f5f (patch)
tree589dc8ae2e1e9b2ad6061f0906043834cf0876cf /include
parentb5c474e533fa3aceaebf3189acd3b5643092845b (diff)
downloadlibnl-d8d67c0a4c348837ed3c3f8377b1f8a4e5574f5f.zip
libnl-d8d67c0a4c348837ed3c3f8377b1f8a4e5574f5f.tar.gz
libnl-d8d67c0a4c348837ed3c3f8377b1f8a4e5574f5f.tar.bz2
Provide numeric version defines
Diffstat (limited to 'include')
-rw-r--r--include/netlink/version.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/netlink/version.h.in b/include/netlink/version.h.in
index 7bd38cc..9deb365 100644
--- a/include/netlink/version.h.in
+++ b/include/netlink/version.h.in
@@ -6,7 +6,7 @@
* License as published by the Free Software Foundation version 2.1
* of the License.
*
- * Copyright (c) 2008 Thomas Graf <tgraf@suug.ch>
+ * Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
*/
#ifndef NETLINK_VERSION_H_
@@ -15,4 +15,9 @@
#define LIBNL_STRING "@PACKAGE_STRING@"
#define LIBNL_VERSION "@PACKAGE_VERSION@"
+#define LIBNL_VER_MAJ @MAJ_VERSION@
+#define LIBNL_VER_MIN @MIN_VERSION@
+#define LIBNL_VER(maj,min) ((maj) << 8 | (min))
+#define LIBNL_VER_NUM LIBNL_VER(LIBNL_VER_MAJ, LIBNL_VER_MIN)
+
#endif