prerequisites.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2007-2008 Martin Pieuchot 
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
00017  * USA
00018  */
00019 
00020 #ifndef _WX_OGRE_PREREQUISITES_H_
00021 #define _WX_OGRE_PREREQUISITES_H_
00022 
00023 #include <wx/wx.h>
00024 #include <Ogre.h>
00025 
00026 #define S(s) STRINGIFY(s)
00027 #define STRINGIFY(s) #s
00028 
00029 #if defined( _DEBUG ) || defined( DEBUG )
00030 #   define WXOGRE_DEBUG 1
00031 #else
00032 #   define WXOGRE_DEBUG 0
00033 #endif
00034 
00035 #define WXOGRE_VERSION_MAJOR 0 
00036 #define WXOGRE_VERSION_MINOR 1 
00037 
00038 #define WXOGRE_STR_VER S(WXOGRE_VERSION_MAJOR) "." S(WXOGRE_VERSION_MINOR) 
00039 
00040 
00041 #define WXOGRE_OGRE_VER ( (OGRE_VERSION_MAJOR*100) +  \
00042                           (OGRE_VERSION_MINOR *10) +  \
00043                           (OGRE_VERSION_PATCH)     )
00044 
00045 #define WXOGRE_OGRE_STR_VER S(OGRE_VERSION_MAJOR) "." \
00046                             S(OGRE_VERSION_MINOR) "." \
00047                             S(OGRE_VERSION_PATCH)
00048 
00049 
00050 #endif