Author: hyperion Date: Fri Aug 7 04:03:25 2009 New Revision: 42449
URL: http://svn.reactos.org/svn/reactos?rev=42449&view=rev Log: Visual C++ doesn't like division by zero in constants: for now, don't define NAN, HUGE_VAL, HUGE_VALF, INFINITY for Visual C++
Modified: trunk/reactos/include/crt/math.h
Modified: trunk/reactos/include/crt/math.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/math.h?rev=4244... ============================================================================== --- trunk/reactos/include/crt/math.h [iso-8859-1] (original) +++ trunk/reactos/include/crt/math.h [iso-8859-1] Fri Aug 7 04:03:25 2009 @@ -239,10 +239,12 @@ #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ || !defined __STRICT_ANSI__ || defined __GLIBCPP__
+#if !defined(_MSC_VER) #define NAN (0.0F/0.0F) #define HUGE_VALF (1.0F/0.0F) #define HUGE_VALL (1.0L/0.0L) #define INFINITY (1.0F/0.0F) +#endif
#define FP_NAN 0x0100