Merged silc_1_1_branch to trunk.
[silc.git] / includes / silcversion.h.in
index 657ec4d2dfda24d73036e67f8eb91f1d10ff8e29..45a65c9fe6e8cf757d9b72350e12364ec35cb511 100644 (file)
 extern "C" {
 #endif
 
+/* Version check macro.  Use this to check that package is of specific
+   version compile time.  Use the __SILC_XXX_VERSION below in comparison. */
+#define SILC_VERSION(a, b, c) (((a) << 24) + ((b) << 16) + ((c) << 8)
+@__SILC_PACKAGE_VERSION@
+
 #define SILC_VERSION_STRING "@VERSION@"
 #define SILC_DIST_VERSION_STRING "@VERSION@"
-#define SILC_PROTOCOL_VERSION_STRING "SILC-1.3-@VERSION@ @PACKAGE@"
+#define SILC_PROTOCOL_VERSION_STRING "SILC-1.2-@VERSION@ @PACKAGE@"
 #define SILC_NAME "SILC @PACKAGE_NAME@"
 
 /* SILC Protocol version number */
-#define SILC_PROTOCOL_VERSION_CURRENT 13
+#define SILC_PROTOCOL_VERSION_CURRENT 12
 
 /* SILC version string */
 #define silc_version SILC_VERSION_STRING