#ifndef __VERSION_H__ #define __VERSION_H__ #if _MSC_VER > 1000 #pragma once #endif #ifndef _T #define _T(x) x #endif #define _chSTR(x) _T(#x) #define chSTR(x) _chSTR(x) // *) Specify the version of emule only here with the following defines. // *) When changing any of those version nr. defines you also have to rebuild the language DLLs. // // General format: // ... // // Fields: // major number (e.g. 0) // minor number (e.g. 30) // update number (e.g. 0='a' 1='b' 2='c' 3='d' 4='e' 5='f' ...) // build number; currently not used // // Currently used: // .. is used for the displayed version (GUI) and the version check number // . is used for the protocol(!) version // #define VERSION_MJR 0 #define VERSION_MIN 42 #define VERSION_UPDATE 4 #define VERSION_BUILD 27 #ifdef _DEBUG #ifdef _UNICODE #define VERSION_SPECIAL_BUILD _T(" - Unicode Debug") #else #define VERSION_SPECIAL_BUILD _T(" - Debug") #endif #else #ifdef _UNICODE #define VERSION_SPECIAL_BUILD _T(" - Unicode") #else #define VERSION_SPECIAL_BUILD _T("") #endif #endif #define SZ_VERSION_NAME chSTR(VERSION_MJR) _T(".") chSTR(VERSION_MIN) _T(".") chSTR(VERSION_UPDATE) #endif /* !__VERSION_H__ */