1
///////////////////////////////////////////////////////////////////////////////
2
/// @file OgreOpcodeExports.h
3
/// @brief Export macros and common stuff.
5
/// @author The OgreOpcode Team
7
///////////////////////////////////////////////////////////////////////////////
9
/// This file is part of OgreOpcode.
11
/// A lot of the code is based on the Nebula Opcode Collision module, see docs/Nebula_license.txt
13
/// OgreOpcode is free software; you can redistribute it and/or
14
/// modify it under the terms of the GNU Lesser General Public
15
/// License as published by the Free Software Foundation; either
16
/// version 2.1 of the License, or (at your option) any later version.
18
/// OgreOpcode is distributed in the hope that it will be useful,
19
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
20
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
/// Lesser General Public License for more details.
23
/// You should have received a copy of the GNU Lesser General Public
24
/// License along with OgreOpcode; if not, write to the Free Software
25
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
///////////////////////////////////////////////////////////////////////////////
28
#ifndef __OgreOpcodeExports_h__
29
#define __OgreOpcodeExports_h__
31
#pragma warning( disable: 4267 ) // conversion from 'size_t' to whatever
33
// Turn deprecation warnings off when using VC8
34
#if (_MSC_VER >= 1400)
35
#pragma warning (disable : 4996)
36
#ifndef _CRT_SECURE_NO_DEPRECATE
37
#define _CRT_SECURE_NO_DEPRECATE 1
39
#ifndef _CRT_NONSTDC_NO_DEPRECATE
40
#define _CRT_NONSTDC_NO_DEPRECATE 1
45
#include "OgrePrerequisites.h"
47
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 && !defined ( __MINGW32__ )
48
# if defined( OGREOPCODE_EXPORTS )
49
# define _OgreOpcode_Export __declspec( dllexport )
51
# define _OgreOpcode_Export __declspec( dllimport )
54
# define _OgreOpcode_Export
57
// Uncomment the next line to build against Azathoth .. ;-)
58
//#define BUILD_AGAINST_AZATHOTH
60
#endif // __OgreOpcodeExports_h__