fix compile problems with msvc6
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 20 Oct 2005 15:28:35 +0000 (15:28 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 20 Oct 2005 15:28:35 +0000 (15:28 +0000)
svn path=/trunk/; revision=18634

reactos/tools/rbuild/XML.cpp
reactos/tools/rbuild/ssprintf.cpp

index 6a047a0..074af9e 100644 (file)
@@ -17,7 +17,7 @@
  */
 #include "pch.h"
 
-#ifdef _MSC_VER
+#ifndef MAX_PATH
 #define MAX_PATH _MAX_PATH
 #endif
 
index d20a13e..36a190c 100644 (file)
@@ -317,7 +317,7 @@ numberf(std::string& f, double __n, char exp_sign,  int size, int precision, int
                else if (  frac < -0.5  )
                        e--;
 
-               result = numberf(f,__n/pow(10.0L,e),'f',size-4, precision, type);
+               result = numberf(f,__n/pow(10.0L,(long double)e),'f',size-4, precision, type);
                if (result < 0)
                        return false;
                f += exp_sign;
@@ -510,7 +510,7 @@ wnumberf(std::wstring& f, double __n, wchar_t exp_sign,  int size, int precision
                else if (  frac < -0.5  )
                        e--;
 
-               result = wnumberf(f,__n/pow(10.0L,e),L'f',size-4, precision, type);
+               result = wnumberf(f,__n/pow(10.0L,(long double) e),L'f',size-4, precision, type);
                if (result < 0)
                        return false;
                f += exp_sign;