|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: version.h 2028 2010-12-10 14:18:42Z mike $ 00005 // 00006 // Copyright (C) 2006-2010 by The Odamex Team. 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License 00010 // as published by the Free Software Foundation; either version 2 00011 // of the License, or (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // DESCRIPTION: 00019 // Source versioning 00020 // 00021 //----------------------------------------------------------------------------- 00022 00023 00024 #ifndef __VERSION_H__ 00025 #define __VERSION_H__ 00026 00027 #if _MSC_VER == 1200 00028 // MSVC6, disable broken warnings about truncated stl lines 00029 #pragma warning(disable:4786) 00030 #endif 00031 00032 // Lots of different representations for the version number 00033 #define CONFIGVERSIONSTR "51" 00034 #define GAMEVER (0*256+51) 00035 00036 #define DOTVERSIONSTR "0.5.1" 00037 00038 #define SERVERMAJ (gameversion / 256) 00039 #define SERVERMIN ((gameversion % 256) / 10) 00040 #define SERVERREL ((gameversion % 256) % 10) 00041 #define CLIENTMAJ (GAMEVER / 256) 00042 #define CLIENTMIN ((GAMEVER % 256) / 10) 00043 #define CLIENTREL ((GAMEVER % 256) % 10) 00044 00045 // SAVESIG is the save game signature. It should be the minimum version 00046 // whose savegames this version is compatible with, which could be 00047 // earlier than this version. 00048 #define SAVESIG "ODAMEXSAVE050 " // Needs to be exactly 16 chars long 00049 00050 // denis - per-file svn version stamps 00051 class file_version 00052 { 00053 public: 00054 file_version(const char *uid, const char *id, const char *p, int l, const char *t, const char *d); 00055 }; 00056 00057 #define VERSION_CONTROL(uid, id) static file_version file_version_unique_##uid(#uid, id, __FILE__, __LINE__, __TIME__, __DATE__); 00058 00059 #endif //__VERSION_H__ 00060 00061