]> granicus.if.org Git - libexpat/commitdiff
* Added integer modifier macro to support 64-bit integers in printf.
authorKarl Waclawek <kwaclaw@users.sourceforge.net>
Sun, 25 Dec 2005 16:56:05 +0000 (16:56 +0000)
committerKarl Waclawek <kwaclaw@users.sourceforge.net>
Sun, 25 Dec 2005 16:56:05 +0000 (16:56 +0000)
* Made include directives to be in sync with xmlparse.c.

expat/xmlwf/xmlwf.c

index 151f54ce4f85d43963782be75f3a8a178727231f..74d4525d7bd1661bbf5bd4a1ce5865becdb5cfa5 100755 (executable)
@@ -7,6 +7,16 @@
 #include <stddef.h>
 #include <string.h>
 
+#ifdef COMPILED_FROM_DSP
+#include "winconfig.h"
+#elif defined(MACOS_CLASSIC)
+#include "macconfig.h"
+#elif defined(__amigaos4__)
+#include "amigaconfig.h"
+#elif defined(HAVE_EXPAT_CONFIG_H)
+#include <expat_config.h>
+#endif /* ndef COMPILED_FROM_DSP */
+
 #include "expat.h"
 #include "codepage.h"
 #include "xmlfile.h"
@@ -309,7 +319,8 @@ metaLocation(XML_Parser parser)
   if (uri)
     ftprintf((FILE *)XML_GetUserData(parser), T(" uri=\"%s\""), uri);
   ftprintf((FILE *)XML_GetUserData(parser),
-           T(" byte=\"%ld\" nbytes=\"%d\" line=\"%d\" col=\"%d\""),
+           T(" byte=\"%" XML_FMT_INT_MOD "d\" nbytes=\"%d\" \
+                        line=\"%" XML_FMT_INT_MOD "u\" col=\"%" XML_FMT_INT_MOD "u\""),
            XML_GetCurrentByteIndex(parser),
            XML_GetCurrentByteCount(parser),
            XML_GetCurrentLineNumber(parser),