Platform_WIN32.h
Go to the documentation of this file.
00001 //
00002 // Platform_WIN32.h
00003 //
00004 // $Id: //poco/1.3/Foundation/include/Poco/Platform_WIN32.h#5 $
00005 //
00006 // Library: Foundation
00007 // Package: Core
00008 // Module:  Platform
00009 //
00010 // Platform and architecture identification macros
00011 // and platform-specific definitions for Windows.
00012 //
00013 // Copyright (c) 2004-2007, Applied Informatics Software Engineering GmbH.
00014 // and Contributors.
00015 //
00016 // Permission is hereby granted, free of charge, to any person or organization
00017 // obtaining a copy of the software and accompanying documentation covered by
00018 // this license (the "Software") to use, reproduce, display, distribute,
00019 // execute, and transmit the Software, and to prepare derivative works of the
00020 // Software, and to permit third-parties to whom the Software is furnished to
00021 // do so, all subject to the following:
00022 // 
00023 // The copyright notices in the Software and this entire statement, including
00024 // the above license grant, this restriction and the following disclaimer,
00025 // must be included in all copies of the Software, in whole or in part, and
00026 // all derivative works of the Software, unless such copies or derivative
00027 // works are solely in the form of machine-executable object code generated by
00028 // a source language processor.
00029 // 
00030 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00031 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00032 // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
00033 // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
00034 // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
00035 // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00036 // DEALINGS IN THE SOFTWARE.
00037 //
00038 
00039 
00040 #ifndef Foundation_Platform_WIN32_INCLUDED
00041 #define Foundation_Platform_WIN32_INCLUDED
00042 
00043 
00044 // Verify that we're built with the multithreaded 
00045 // versions of the runtime libraries
00046 #if defined(_MSC_VER) && !defined(_MT)
00047         #error Must compile with /MD, /MDd, /MT or /MTd
00048 #endif
00049 
00050 
00051 // Check debug/release settings consistency
00052 #if defined(NDEBUG) && defined(_DEBUG)
00053         #error Inconsistent build settings (check for /MD[d])
00054 #endif
00055 
00056 
00057 // Reduce bloat imported by "Poco/UnWindows.h"
00058 #if defined(_WIN32)
00059         #if !defined(_WIN32_WINNT)
00060                 #define _WIN32_WINNT 0x0500
00061         #endif
00062         #if !defined(WIN32_LEAN_AND_MEAN) && !defined(POCO_BLOATED_WIN32)
00063                 #define WIN32_LEAN_AND_MEAN
00064         #endif
00065 #endif
00066 
00067 
00068 // Unicode Support
00069 #if defined(UNICODE) && !defined(POCO_WIN32_UTF8)
00070         #define POCO_WIN32_UTF8
00071 #endif
00072 
00073 
00074 // Turn off some annoying warnings
00075 #if defined(_MSC_VER)
00076         #pragma warning(disable:4018) // signed/unsigned comparison
00077         #pragma warning(disable:4251) // ... needs to have dll-interface warning 
00078         #pragma warning(disable:4355) // 'this' : used in base member initializer list
00079         #pragma warning(disable:4996) // VC++ 8.0 deprecation warnings
00080         #pragma warning(disable:4351) // new behavior: elements of array '...' will be default initialized
00081         #pragma warning(disable:4675) // resolved overload was found by argument-dependent lookup
00082 #endif
00083 
00084 
00085 #if defined(__INTEL_COMPILER)
00086         #pragma warning(disable:1738) // base class dllexport/dllimport specification differs from that of the derived class
00087         #pragma warning(disable:1478) // function ... was declared "deprecated"
00088         #pragma warning(disable:1744) // field of class type without a DLL interface used in a class with a DLL interface
00089 #endif
00090 
00091 
00092 #endif // Foundation_Platform_WIN32_INCLUDED


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:19