~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/ogreopcode/include/OgreOpcodeExports.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-07-23 07:46:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090723074640-wh0ukzis0kda36qv
Tags: upstream-0.5.6
ImportĀ upstreamĀ versionĀ 0.5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////
 
2
/// @file OgreOpcodeExports.h
 
3
/// @brief Export macros and common stuff.
 
4
///
 
5
/// @author The OgreOpcode Team
 
6
///
 
7
///////////////////////////////////////////////////////////////////////////////
 
8
///
 
9
/// This file is part of OgreOpcode.
 
10
///
 
11
///  A lot of the code is based on the Nebula Opcode Collision module, see docs/Nebula_license.txt
 
12
///
 
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.
 
17
///
 
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.
 
22
///
 
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
 
26
///
 
27
///////////////////////////////////////////////////////////////////////////////
 
28
#ifndef __OgreOpcodeExports_h__
 
29
#define __OgreOpcodeExports_h__
 
30
 
 
31
#pragma warning( disable: 4267 )  // conversion from 'size_t' to whatever
 
32
 
 
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
 
38
#endif
 
39
#ifndef _CRT_NONSTDC_NO_DEPRECATE
 
40
#define _CRT_NONSTDC_NO_DEPRECATE 1
 
41
#endif
 
42
#endif //VC8
 
43
 
 
44
#include "Ogre.h"
 
45
#include "OgrePrerequisites.h"
 
46
 
 
47
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 && !defined ( __MINGW32__ )
 
48
#       if defined( OGREOPCODE_EXPORTS )
 
49
#               define _OgreOpcode_Export __declspec( dllexport )
 
50
#       else
 
51
#               define _OgreOpcode_Export __declspec( dllimport )
 
52
#       endif
 
53
#else
 
54
#       define _OgreOpcode_Export
 
55
#endif
 
56
 
 
57
// Uncomment the next line to build against Azathoth .. ;-)
 
58
//#define BUILD_AGAINST_AZATHOTH
 
59
 
 
60
#endif // __OgreOpcodeExports_h__