Apply patch that should fix Windows Mobile compilation

git-svn-id: http://pugixml.googlecode.com/svn/trunk@828 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2011-12-09 07:22:46 +00:00
parent aef822c27e
commit 5a312a8ea8

View File

@ -3121,7 +3121,7 @@ namespace
// we need to get length of entire file to load it in memory; the only (relatively) sane way to do it is via seek/tell trick
xml_parse_status get_file_size(FILE* file, size_t& out_result)
{
#if defined(MSVC_CRT_VERSION) && MSVC_CRT_VERSION >= 1400
#if defined(MSVC_CRT_VERSION) && MSVC_CRT_VERSION >= 1400 && !defined(_WIN32_WCE)
// there are 64-bit versions of fseek/ftell, let's use them
typedef __int64 length_type;
@ -5802,7 +5802,7 @@ namespace
}
// gets mantissa digits in the form of 0.xxxxx with 0. implied and the exponent
#if defined(MSVC_CRT_VERSION) && MSVC_CRT_VERSION >= 1400
#if defined(MSVC_CRT_VERSION) && MSVC_CRT_VERSION >= 1400 && !defined(_WIN32_WCE)
void convert_number_to_mantissa_exponent(double value, char* buffer, size_t buffer_size, char** out_mantissa, int* out_exponent)
{
// get base values