Handle preprocessor define VERSION not being present
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 30 Apr 2006 13:23:45 +0000 (13:23 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 30 Apr 2006 13:23:45 +0000 (13:23 +0000)
src/yaz-proxy.cpp

index 2c35be0..775f470 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: yaz-proxy.cpp,v 1.63 2006-04-27 00:04:42 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.64 2006-04-30 13:23:45 adam Exp $
    Copyright (c) 1998-2006, Index Data.
 
 This file is part of the yazproxy.
    Copyright (c) 1998-2006, Index Data.
 
 This file is part of the yazproxy.
@@ -3698,7 +3698,9 @@ void Yaz_ProxyClient::recv_Z_PDU(Z_APDU *apdu, int len)
         *imv1 = '\0';
         if (imv0)
             strcat(imv1, imv0);
         *imv1 = '\0';
         if (imv0)
             strcat(imv1, imv0);
+#ifdef VERSION
         strcat(imv1, "/" VERSION);
         strcat(imv1, "/" VERSION);
+#endif
         ir->implementationVersion = imv1;
         
         // apply YAZ Proxy implementation name
         ir->implementationVersion = imv1;
         
         // apply YAZ Proxy implementation name