C:/Users/Mike/Documents/Visual Studio Projects/GameEngine/include/GameEnginePrerequisites.h

Go to the documentation of this file.
00001 /*
00002 -----------------------------------------------------------------------------
00003 Copyright (C) 2006 Michael Harnetty
00004 
00005 This program is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU General Public License
00007 as published by the Free Software Foundation; either version 2
00008 of the License, or (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 -----------------------------------------------------------------------------
00019 */
00020 
00021 #ifndef GAME_ENGINE_PREREQUISITES_H
00022 #define GAME_ENGINE_PREREQUISITES_H
00023 
00024 #include "GameEngineConfig.h"
00025 #include "GameEngineStdHeaders.h"
00026 
00027 
00028 namespace GameEngine{
00029 
00030         // Use the standard calling convention for Windows DLLs.
00031         #ifndef ENGINE_CALL
00032                 #if defined(WIN32) || defined(_WIN32)
00033                         #define ENGINE_CALL __stdcall
00034                 #else
00035                         #define ENGINE_CALL
00036                 #endif
00037         #endif
00038 
00039 
00040         // DLL import/export macro.
00041         #ifndef ENGINE_DECL
00042         #if (defined(WIN32) || defined(_WIN32))
00043                 #ifdef ENGINE_DLL_EXPORTING
00044                         #define ENGINE_DECL __declspec(dllexport)
00045                 #else
00046                                 #if !defined(__MINGW32__) && !defined(__CYGWIN__)
00047                                         #define ENGINE_DECL  __declspec(dllimport)
00048                                 #else
00049                                         #define ENGINE_DECL
00050                                 #endif
00051                 #endif
00052         #else
00053                 #define ENGINE_DECL
00054         #endif
00055         #endif 
00056 
00057 
00064         //#define OPAL_EXPORT_FUNCTION(returnType) extern "C" OPAL_DECL returnType OPAL_CALL
00065         #define ENGINE_EXPORT_FUNCTION extern "C" ENGINE_DECL
00066 
00067 
00068 
00069         // Select floating point precision
00070         #if GAME_ENGINE_USE_DOUBLE == 1
00071                 typedef double Real;
00072         #else
00073                 typedef float Real;
00074         #endif
00075 
00076 }
00077 
00078 #endif

Generated on Thu Apr 19 09:47:02 2007 for GameEngine by  doxygen 1.5.2