00001 /* 00002 * Copyright (C) 2009 Vaclav Slavik <vslavik@fastmail.fm> 00003 * All Rights Reserved 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 2. Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in 00013 * the documentation and/or other materials provided with the 00014 * distribution. 00015 * 3. Neither the name of the Author nor the names of its contributors 00016 * may be used to endorse or promote products derived from this software 00017 * without specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' 00020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 00021 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00022 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 00023 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00024 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00025 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 00026 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00027 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00028 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00029 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00030 * SUCH DAMAGE. 00031 */ 00032 00033 /** 00034 @file 00035 00036 This file contains the XMLWRAPP_CHECK_VERSION macro. 00037 */ 00038 00039 #ifndef _xmlwrapp_version_h_ 00040 #define _xmlwrapp_version_h_ 00041 00042 #define XMLWRAPP_VERSION_MAJOR 0 00043 #define XMLWRAPP_VERSION_MINOR 6 00044 #define XMLWRAPP_VERSION_MICRO 2 00045 00046 /** 00047 Checks if xmlwrapp version is at least @a major.@a minor.@a micro. 00048 */ 00049 #define XMLWRAPP_CHECK_VERSION(major, minor, micro) \ 00050 ( \ 00051 XMLWRAPP_VERSION_MAJOR > (major) \ 00052 || \ 00053 (XMLWRAPP_VERSION_MAJOR == (major) && \ 00054 XMLWRAPP_VERSION_MINOR >= (minor)) \ 00055 || \ 00056 (XMLWRAPP_VERSION_MAJOR == (major) && \ 00057 (XMLWRAPP_VERSION_MINOR == (minor) && \ 00058 XMLWRAPP_VERSION_MICRO >= (micro)) \ 00059 ) 00060 00061 #endif // _xmlwrapp_version_h_