X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=includes%2Fsilcversion.h.in;h=280f04bc727b6feca16d153558e7841216b88850;hb=be10e71673bc538573b1805ee2115f2a3a7281a2;hp=657ec4d2dfda24d73036e67f8eb91f1d10ff8e29;hpb=79c87e489f8f6b92a497b1d8fb5e09e360c29ac0;p=silc.git diff --git a/includes/silcversion.h.in b/includes/silcversion.h.in index 657ec4d2..280f04bc 100644 --- a/includes/silcversion.h.in +++ b/includes/silcversion.h.in @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2007 Pekka Riikonen + Copyright (C) 1997 - 2008 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,13 +24,20 @@ 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. */ +#ifndef SILC_VERSION +#define SILC_VERSION(a, b, c) (((a) << 24) + ((b) << 16) + ((c) << 8) +#endif /* !SILC_VERSION */ +@__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