12#define _USE_MATH_DEFINES // (For VS to define M_PI, etc. in cmath)
13
14/* ------------------------------------
15 Disable some warnings
16 ------------------------------------ */
17#if defined(_MSC_VER)
18 #pragma warning(disable:4786) // (Compiler: Visual C++) Disable warning for too long debug names:
19 #pragma warning(disable:4503) // (Compiler: Visual C++ 2010) Disable warning for too long decorated name
20 #pragma warning(disable:4702) // (Compiler: Visual C++) Disable warning for unreachable code (I don't know why some of these errors appear in the STANDARD LIBRARY headers with Visual Studio 2003!):