diff --git a/src/xercesc/util/Compilers/CodeWarriorDefs.cpp b/src/xercesc/util/Compilers/CodeWarriorDefs.cpp
index b81154def4a60c64db270881c5e061ac5c26662b..a47dad65845856776ce9099a7372c1c5789f70ea 100644
--- a/src/xercesc/util/Compilers/CodeWarriorDefs.cpp
+++ b/src/xercesc/util/Compilers/CodeWarriorDefs.cpp
@@ -62,9 +62,10 @@
 #include <ctype.h>
 
 // These functions are needed because MacOS doesn't define them
-//	(these routines are defined in CW 8 by extras.h)
+//	(these routines are defined in CW 8 by extras.h, but there is no MachO
+//	library for extras).
 
-#if 0
+#if __MACH__ && __MWERKS__
 // Compare lexigraphically two strings
 int stricmp(const char *s1, const char *s2)
 {
diff --git a/src/xercesc/util/Compilers/CodeWarriorDefs.hpp b/src/xercesc/util/Compilers/CodeWarriorDefs.hpp
index 99b034b959308a9d6cf08745393963436ae82012..ed6a1b1ccb81e3fe4650cbbae7b80dd0fde265d8 100644
--- a/src/xercesc/util/Compilers/CodeWarriorDefs.hpp
+++ b/src/xercesc/util/Compilers/CodeWarriorDefs.hpp
@@ -75,8 +75,8 @@
 //  These defines provide the platform specific keywords that they need
 //  to do this.
 // ---------------------------------------------------------------------------
-#define PLATFORM_EXPORT
-#define PLATFORM_IMPORT
+#define PLATFORM_EXPORT __declspec(export)
+#define PLATFORM_IMPORT __declspec(import)
 
 
 // ---------------------------------------------------------------------------
@@ -137,9 +137,10 @@ typedef int             XMLInt32;
 
 // ---------------------------------------------------------------------------
 //  Provide some common string ops that are different/notavail for CodeWarrior.
-//	(these routines are defined in CW 8 by extras.h)
+//	(these routines are defined in CW 8 by extras.h, but there is no MachO
+//	library for extras).
 // ---------------------------------------------------------------------------
-#if 0
+#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