From 927993863eda325c66fc678810eeadd0c744cdf2 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 4 Jun 2010 15:47:22 +0200 Subject: MSVC build fixed --- builds/msvc/c_local_lat/c_local_lat.vcproj | 4 ++++ builds/msvc/c_local_thr/c_local_thr.vcproj | 4 ++++ builds/msvc/c_remote_lat/c_remote_lat.vcproj | 4 ++++ builds/msvc/c_remote_thr/c_remote_thr.vcproj | 4 ++++ foreign/xmlParser/xmlParser.cpp | 2 +- perf/helpers.cpp | 4 +--- 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/builds/msvc/c_local_lat/c_local_lat.vcproj b/builds/msvc/c_local_lat/c_local_lat.vcproj index a8d9a8d..5f7cdb2 100644 --- a/builds/msvc/c_local_lat/c_local_lat.vcproj +++ b/builds/msvc/c_local_lat/c_local_lat.vcproj @@ -165,6 +165,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + diff --git a/builds/msvc/c_local_thr/c_local_thr.vcproj b/builds/msvc/c_local_thr/c_local_thr.vcproj index 38425cc..5d5b9b1 100644 --- a/builds/msvc/c_local_thr/c_local_thr.vcproj +++ b/builds/msvc/c_local_thr/c_local_thr.vcproj @@ -165,6 +165,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + diff --git a/builds/msvc/c_remote_lat/c_remote_lat.vcproj b/builds/msvc/c_remote_lat/c_remote_lat.vcproj index 5bce7e9..81e56a0 100644 --- a/builds/msvc/c_remote_lat/c_remote_lat.vcproj +++ b/builds/msvc/c_remote_lat/c_remote_lat.vcproj @@ -165,6 +165,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + diff --git a/builds/msvc/c_remote_thr/c_remote_thr.vcproj b/builds/msvc/c_remote_thr/c_remote_thr.vcproj index 1089549..a1e465a 100644 --- a/builds/msvc/c_remote_thr/c_remote_thr.vcproj +++ b/builds/msvc/c_remote_thr/c_remote_thr.vcproj @@ -165,6 +165,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + diff --git a/foreign/xmlParser/xmlParser.cpp b/foreign/xmlParser/xmlParser.cpp index bccfaf7..ccb1e17 100644 --- a/foreign/xmlParser/xmlParser.cpp +++ b/foreign/xmlParser/xmlParser.cpp @@ -421,7 +421,7 @@ XMLNode XMLNode::openFileHelper(XMLCSTR filename, XMLCSTR tag) // create message char message[2000],*s1=(char*)"",*s3=(char*)""; XMLCSTR s2=_CXML(""); if (pResults.error==eXMLErrorFirstTagNotFound) { s1=(char*)"First Tag should be '"; s2=tag; s3=(char*)"'.\n"; } - snprintf(message,2000, + sprintf(message, #ifdef _XMLWIDECHAR "XML Parsing error inside file '%S'.\n%S\nAt line %i, column %i.\n%s%S%s" #else diff --git a/perf/helpers.cpp b/perf/helpers.cpp index 71a38e2..ddf1e45 100644 --- a/perf/helpers.cpp +++ b/perf/helpers.cpp @@ -19,9 +19,7 @@ #include #include -#ifdef _WIN32 -# include -#else +#ifndef _WIN32 # include # include #endif -- cgit v1.2.3