From 77e4ce400ffa1069f9d554f1003eba8326d30880 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 17 Feb 2009 13:14:49 +0000 Subject: [PATCH] Calculate VERSION from VERSION_MAJOR and VERSION_MINOR One less place where the version number needs to be updated... git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1382 726aef4b-f618-498e-8847-2d620e286838 --- main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.h b/main.h index 4203a878..32870a5c 100644 --- a/main.h +++ b/main.h @@ -9,11 +9,11 @@ #ifndef _MAIN_H #define _MAIN_H -// Keep the number in sync with configure.in (and also with configure) -#define VERSION 0.065 // The following defines are for #if comparison (preprocessor only likes ints) #define VERSION_MAJOR 0 #define VERSION_MINOR 65 +// This one is for display purpose +#define VERSION (VERSION_MAJOR + VERSION_MINOR / 1000.0) // You can add -DVERSION_EXTRA="stuff" to your CXXFLAGS! #ifndef VERSION_EXTRA