00001 /* @(#)build/win:$Id: w32pragma.h 36367 2010-10-19 07:52:45Z brun $ */ 00002 00003 /************************************************************************* 00004 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see $ROOTSYS/LICENSE. * 00008 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00009 *************************************************************************/ 00010 00011 #ifndef ROOT_w32pragma 00012 #define ROOT_w32pragma 00013 00014 /************************************************************************* 00015 * * 00016 * w32pragma * 00017 * * 00018 * Pragmas and defines for MSVC * 00019 * * 00020 *************************************************************************/ 00021 00022 #ifdef _WIN32 00023 00024 /* Disable warning about truncated symboles (usually coming from stl) */ 00025 #pragma warning (disable: 4786) 00026 /* Disable warning about inconsistent dll linkage (dllexport assumed) */ 00027 #pragma warning (disable: 4273) 00028 /* "no suitable definition provided for explicit template instantiation"*/ 00029 #pragma warning (disable: 4661) 00030 /* "deprecated, use ISO C++ conformant name" */ 00031 #pragma warning (disable: 4996) 00032 /* "new behavior: elements default initialized" */ 00033 #pragma warning (disable: 4351) 00034 /* local static not thread safe */ 00035 #pragma warning (disable: 4640) 00036 /*forcing int to bool (performance warning) */ 00037 #pragma warning (disable: 4800) 00038 /* truncation from double to float */ 00039 #pragma warning (disable: 4305) 00040 /* signed unsigned mismatch */ 00041 #pragma warning (disable: 4018) 00042 /* truncation of constant value */ 00043 #pragma warning (disable: 4309) 00044 /* check op precedence for error */ 00045 #pragma warning (disable: 4554) 00046 /* qualifier applied to reference type; ignored */ 00047 #pragma warning (disable: 4181) 00048 /* /GS can not buffer overrun protect parameters and locals: function not optimized */ 00049 #pragma warning (disable: 4748) 00050 /* function(): resolved overload was found by argument-dependent lookup */ 00051 #pragma warning (disable: 4675) 00052 00053 /* function is hidden */ 00054 #pragma warning (3: 4266) 00055 /* loop control variable is used outside the for-loop scope */ 00056 #pragma warning (3: 4289) 00057 00058 #define WIN32 1 00059 #define _WINDOWS 1 00060 #define WINVER 0x0400 00061 #define CRTAPI1 _cdecl 00062 #define CRTAPI2 _cdecl 00063 #define _X86_ 1 00064 // #define _DLL - used to be explicitely defined, 00065 // but it's implicitely defined via /MD(d) 00066 #define G__REDIRECTIO 1 00067 #define G__SHAREDLIB 1 00068 #define G__UNIX 1 00069 #define G__ROOT 1 00070 #define G__WIN32 1 00071 00072 #if (_MSC_VER >= 1310) 00073 # define G__NEWSTDHEADER 1 00074 #endif 00075 00076 #if (_MSC_VER >= 1400) 00077 #define _CRT_SECURE_NO_DEPRECATE 1 00078 #define _USE_ATTRIBUTES_FOR_SAL 0 00079 #endif 00080 00081 #endif // _WIN32 00082 00083 #endif // defined ROOT_w32pragma