From 7d37055745202b02475ace8c84b82bc7ee5f1d04 Mon Sep 17 00:00:00 2001 From: kwaclaw Date: Sun, 25 Dec 2005 17:05:10 +0000 Subject: [PATCH] * Added integer modifier macro to support 64-bit integers in printf. * Made include directives of configuration header files sync'ed with xmlparse.c. --- xmlwf/xmlfile.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xmlwf/xmlfile.c b/xmlwf/xmlfile.c index edcf1a5..88bb396 100755 --- a/xmlwf/xmlfile.c +++ b/xmlwf/xmlfile.c @@ -7,13 +7,17 @@ #include #include #include + #ifdef COMPILED_FROM_DSP #include "winconfig.h" -#else -#ifdef HAVE_EXPAT_CONFIG_H -#include "expat_config.h" -#endif -#endif +#elif defined(MACOS_CLASSIC) +#include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" +#elif defined(HAVE_EXPAT_CONFIG_H) +#include +#endif /* ndef COMPILED_FROM_DSP */ + #include "expat.h" #include "xmlfile.h" #include "xmltchar.h" @@ -57,7 +61,7 @@ reportError(XML_Parser parser, const XML_Char *filename) enum XML_Error code = XML_GetErrorCode(parser); const XML_Char *message = XML_ErrorString(code); if (message) - ftprintf(stdout, T("%s:%d:%d: %s\n"), + ftprintf(stdout, T("%s:%" XML_FMT_INT_MOD "u:%" XML_FMT_INT_MOD "u: %s\n"), filename, XML_GetErrorLineNumber(parser), XML_GetErrorColumnNumber(parser), -- 2.11.4.GIT