--- /home/derhally/home/xml-xerces/c/src/xercesc/util/Compilers/CodeWarriorDefs.hpp	Thu Aug 22 23:23:54 2002
+++ CodeWarriorDefs.hpp	Mon Nov  4 14:50:12 2002
@@ -68,6 +68,10 @@
 //#include <limits.h>  // for MAX of size_t and ssize_t
 //#include <extras.h>
 
+#if defined(_WIN32) || defined(WIN32)
+#include <wchar.h>
+#include <wctype.h>
+#endif
 
 // ---------------------------------------------------------------------------
 //  A define in the build for each project is also used to control whether
@@ -75,9 +79,14 @@
 //  These defines provide the platform specific keywords that they need
 //  to do this.
 // ---------------------------------------------------------------------------
+
+#if defined(macintosh)
 #define PLATFORM_EXPORT __declspec(export)
 #define PLATFORM_IMPORT __declspec(import)
-
+#elif defined(_WIN32) || defined(WIN32)
+#define PLATFORM_EXPORT     __declspec(dllexport)
+#define PLATFORM_IMPORT     __declspec(dllimport)
+#endif
 
 // ---------------------------------------------------------------------------
 //  Indicate that we do not support native bools
@@ -98,9 +107,12 @@
 // ---------------------------------------------------------------------------
 //  Define our version of the XMLCh.
 // ---------------------------------------------------------------------------
+#if defined(macintosh)
 typedef unsigned short  XMLCh;
 typedef unsigned short  UTF16Ch;
-
+#elif defined(_WIN32) || defined(WIN32)
+typedef wchar_t XMLCh;
+#endif
 
 // ---------------------------------------------------------------------------
 //  Define unsigned 16 and 32 bits integers
@@ -143,6 +155,12 @@
 #if __MACH__ && __MWERKS__
 int stricmp(const char* const str1, const char* const  str2);
 int strnicmp(const char* const str1, const char* const  str2, const unsigned int count);
+#endif
+
+#if __MWERKS__
+/* used in place of calling mbstowcs or wcstombs with a NULL destination */
+int mbswcslen(const char * s, const unsigned int n);
+int wcsmbslen(const wchar_t * pwcs, const unsigned int n);
 #endif
 
 // ---------------------------------------------------------------------------
