# OgreHeaderPrefix.h

Go to the documentation of this file.

    00001 /*-------------------------------------------------------------------------
    00002 This source file is a part of OGRE
    00003 (Object-oriented Graphics Rendering Engine)
    00004
    00005 For the latest info, see http://www.ogre3d.org/
    00006
    00007 Copyright (c) 2000-2009 Torus Knot Software Ltd
    00008 Permission is hereby granted, free of charge, to any person obtaining a copy
    00009 of this software and associated documentation files (the "Software"), to deal
    00010 in the Software without restriction, including without limitation the rights
    00011 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    00012 copies of the Software, and to permit persons to whom the Software is
    00013 furnished to do so, subject to the following conditions:
    00014
    00015 The above copyright notice and this permission notice shall be included in
    00016 all copies or substantial portions of the Software.
    00017
    00018 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    00019 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00020 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    00021 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    00022 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    00023 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    00024 THE SOFTWARE
    00025 -------------------------------------------------------------------------*/
    00026 #ifndef __OgreHeaderPrefix_H__
    00027 #define __OgreHeaderPrefix_H__
    00028
    00029 #include "OgrePrerequisites.h"
    00030
    00031 #if OGRE_COMPILER == OGRE_COMPILER_MSVC
    00032
    00033 // Save warnings state
    00034 #   pragma warning (push)
    00035 // Turn off warnings generated by long std templates
    00036 // This warns about truncation to 255 characters in debug/browse info
    00037 #   pragma warning (disable : 4786)
    00038
    00039 // Turn off warnings generated by long std templates
    00040 // This warns about truncation to 255 characters in debug/browse info
    00041 #   pragma warning (disable : 4503)
    00042
    00043 // disable: "<type> needs to have dll-interface to be used by clients'
    00044 // Happens on STL member variables which are not public therefore is ok
    00045 #   pragma warning (disable : 4251)
    00046
    00047 // disable: "non dll-interface class used as base for dll-interface class"
    00048 // Happens when deriving from Singleton because bug in compiler ignores
    00049 // template export
    00050 #   pragma warning (disable : 4275)
    00051
    00052 // disable: "C++ Exception Specification ignored"
    00053 // This is because MSVC 6 did not implement all the C++ exception
    00054 // specifications in the ANSI C++ draft.
    00055 #   pragma warning( disable : 4290 )
    00056
    00057 // disable: "no suitable definition provided for explicit template
    00058 // instantiation request" Occurs in VC7 for no justifiable reason on all
    00059 // #includes of Singleton
    00060 #   pragma warning( disable: 4661)
    00061
    00062 // disable: deprecation warnings when using CRT calls in VC8
    00063 // These show up on all C runtime lib code in VC8, disable since they clutter
    00064 // the warnings with things we may not be able to do anything about (e.g.
    00065 // generated code from nvparse etc). I doubt very much that these calls
    00066 // will ever be actually removed from VC anyway, it would break too much code.
    00067 #   pragma warning( disable: 4996)
    00068
    00069 // disable: "conditional expression constant", always occurs on
    00070 // OGRE_MUTEX_CONDITIONAL when no threading enabled
    00071 #   pragma warning (disable : 201)
    00072
    00073 // disable: "unreferenced formal parameter"
    00074 // Many versions of VC have bugs which generate this error in cases where they shouldn't
    00075 #   pragma warning (disable : 4100)
    00076
    00077 #endif
    00078
    00079
    00080 #endif
    00081
    00082

Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun May 8 2011 20:28:08