From 0d623d28e169219abdcd8ebfeab4105e8aeb9eef Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 20 Oct 2005 15:28:35 +0000 Subject: [PATCH] fix compile problems with msvc6 svn path=/trunk/; revision=18634 --- reactos/tools/rbuild/XML.cpp | 2 +- reactos/tools/rbuild/ssprintf.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/tools/rbuild/XML.cpp b/reactos/tools/rbuild/XML.cpp index 6a047a06d4e..074af9e299d 100644 --- a/reactos/tools/rbuild/XML.cpp +++ b/reactos/tools/rbuild/XML.cpp @@ -17,7 +17,7 @@ */ #include "pch.h" -#ifdef _MSC_VER +#ifndef MAX_PATH #define MAX_PATH _MAX_PATH #endif diff --git a/reactos/tools/rbuild/ssprintf.cpp b/reactos/tools/rbuild/ssprintf.cpp index d20a13ece43..36a190c8359 100644 --- a/reactos/tools/rbuild/ssprintf.cpp +++ b/reactos/tools/rbuild/ssprintf.cpp @@ -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; -- 2.17.1