mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
4
main.h
4
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
|
||||
|
||||
Reference in New Issue
Block a user