aboutsummaryrefslogtreecommitdiffstats
path: root/catalog.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2007-04-17 12:44:58 +0000
committerDaniel Veillard <veillard@src.gnome.org>2007-04-17 12:44:58 +0000
commit59d3ed8fe0ae9e8f453501d0993f2bc2f3f34ae8 (patch)
treebd075af9da493ced41a21737eed9d8f73b48ea98 /catalog.c
parented12138b18935276f3815f42a108192cf8b1bf12 (diff)
downloadandroid_external_libxml2-59d3ed8fe0ae9e8f453501d0993f2bc2f3f34ae8.tar.gz
android_external_libxml2-59d3ed8fe0ae9e8f453501d0993f2bc2f3f34ae8.tar.bz2
android_external_libxml2-59d3ed8fe0ae9e8f453501d0993f2bc2f3f34ae8.zip
applied patch from Andreas Stricke to ease the compilation on Windows CE
* catalog.c libxml.h win32/wince/wincecompat.h win32/wince/wincecompat.c xmlIO.c nanohttp.c nanoftp.c trio.c triostr.c triostr.h: applied patch from Andreas Stricke to ease the compilation on Windows CE Daniel svn path=/trunk/; revision=3600
Diffstat (limited to 'catalog.c')
-rw-r--r--catalog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/catalog.c b/catalog.c
index 92f5da52..95ebee8f 100644
--- a/catalog.c
+++ b/catalog.c
@@ -77,9 +77,15 @@
#if defined(_WIN32) && defined(_MSC_VER)
#undef XML_XML_DEFAULT_CATALOG
static char XML_XML_DEFAULT_CATALOG[256] = "file:///etc/xml/catalog";
+#if defined(_WIN32_WCE)
+/* Windows CE don't have a A variant */
+#define GetModuleHandleA GetModuleHandle
+#define GetModuleFileNameA GetModuleFileName
+#else
void* __stdcall GetModuleHandleA(const char*);
unsigned long __stdcall GetModuleFileNameA(void*, char*, unsigned long);
#endif
+#endif
static xmlChar *xmlCatalogNormalizePublic(const xmlChar *pubID);
static int xmlExpandCatalog(xmlCatalogPtr catal, const char *filename);