From 5a312a8ea8ab78c9cf8eba7cb299dafb6985800c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Fri, 9 Dec 2011 07:22:46 +0000 Subject: Apply patch that should fix Windows Mobile compilation git-svn-id: http://pugixml.googlecode.com/svn/trunk@828 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index a3c6abd..a6196dc 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -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 -- cgit v1.2.3