From 2669e47c1af458eb0f4e39b8d728804d78f7cf27 Mon Sep 17 00:00:00 2001 From: James David Berry <jberry@apache.org> Date: Thu, 22 Aug 2002 23:57:02 +0000 Subject: [PATCH] Changes to support MACHO build under CodeWarrior git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174173 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/Compilers/CodeWarriorDefs.cpp | 5 +++-- src/xercesc/util/Compilers/CodeWarriorDefs.hpp | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/xercesc/util/Compilers/CodeWarriorDefs.cpp b/src/xercesc/util/Compilers/CodeWarriorDefs.cpp index b81154def..a47dad658 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 99b034b95..ed6a1b1cc 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 -- GitLab