yat
0.8.3pre
|
00001 #ifndef _theplu_yat_utility_version_ 00002 #define _theplu_yat_utility_version_ 00003 00004 // $Id: version.h 2451 2011-03-28 23:16:14Z peter $ 00005 00006 /* 00007 Copyright (C) 2008 Jari Häkkinen, Peter Johansson 00008 Copyright (C) 2009, 2011 Peter Johansson 00009 00010 This file is part of the yat library, http://dev.thep.lu.se/yat 00011 00012 The yat library is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU General Public License as 00014 published by the Free Software Foundation; either version 3 of the 00015 License, or (at your option) any later version. 00016 00017 The yat library is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with yat. If not, see <http://www.gnu.org/licenses/>. 00024 */ 00025 00029 00030 /* 00031 Compile-time version constants 00032 00033 \see http://apr.apache.org/versioning.html 00034 */ 00035 00036 #include "config_public.h" 00037 00050 #define YAT_VERSION_AT_LEAST(major,minor,patch) \ 00051 (((major) < YAT_MAJOR_VERSION) || \ 00052 ((major) == YAT_MAJOR_VERSION && (minor) < YAT_MINOR_VERSION) || \ 00053 ((major) == YAT_MAJOR_VERSION && (minor) == YAT_MINOR_VERSION &&\ 00054 (patch) <= YAT_PATCH_VERSION)) 00055 00056 #include <string> 00057 00058 namespace theplu { 00059 namespace yat { 00060 namespace utility { 00061 00067 unsigned int major_version(void); 00068 00074 unsigned int minor_version(void); 00075 00081 unsigned int patch_version(void); 00082 00088 std::string version(void); 00089 00090 }}} // of namespace utility, yat, and theplu 00091 00092 #endif