X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=includes%2Fsilcversion.h.in;h=45a65c9fe6e8cf757d9b72350e12364ec35cb511;hb=52e57c880aba9c5e89f59d962eb9af75670b76e0;hp=86c16ba99963c9998a2c56b15fae5e12113f7c1e;hpb=c257b555225193e54d85daf541d29578b3c93882;p=silc.git diff --git a/includes/silcversion.h.in b/includes/silcversion.h.in index 86c16ba9..45a65c9f 100644 --- a/includes/silcversion.h.in +++ b/includes/silcversion.h.in @@ -1,10 +1,10 @@ /* - silcversion.h + silcversion.h Author: Pekka Riikonen - Copyright (C) 1997 - 2005 Pekka Riikonen + Copyright (C) 1997 - 2007 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,6 +24,11 @@ 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.2-@VERSION@ @PACKAGE@"