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
This commit is contained in:
psychon
2009-02-17 13:14:49 +00:00
parent 26fa234e05
commit 77e4ce400f

4
main.h
View File

@@ -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