windows.hpp
Go to the documentation of this file.
00001 
00008 /*****************************************************************************
00009 ** Ifdefs
00010 *****************************************************************************/
00011 
00012 #ifndef ECL_CONFIG_WINDOWS_HPP_
00013 #define ECL_CONFIG_WINDOWS_HPP_
00014 
00015 /*****************************************************************************
00016 ** Win32
00017 *****************************************************************************/
00018 
00019 #include <ecl/config/ecl.hpp>
00020 
00021 #if defined(ECL_IS_WIN32)
00022   #define _WINSOCKAPI_    // stops windows.h including winsock.h (we use winsock2)
00023   #include <windows.h>
00024   #ifdef min
00025     #undef min
00026   #endif
00027   #ifdef max
00028     #undef max
00029   #endif
00030 
00031   #ifdef _MSC_VER
00032     #pragma warning(disable: 4251)  // Disable warnings about import/exports when deriving from std classes
00033     #pragma warning(disable: 4275)  // ""
00034     #pragma warning (disable:4996)  // Disable warnings about deprecated ctime
00035     #pragma warning (disable:4290)  // Disable warnings about unsupported c++ exception specifications
00036   #endif
00037 #endif
00038 
00039 #endif /* ECL_CONFIG_WINDOWS_HPP_ */


ecl_config
Author(s): Daniel Stonier
autogenerated on Wed Aug 26 2015 11:27:12