You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2002/08/23 01:57:02 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Compilers CodeWarriorDefs.cpp CodeWarriorDefs.hpp

jberry      2002/08/22 16:57:02

  Modified:    c/src/xercesc/util/Compilers CodeWarriorDefs.cpp
                        CodeWarriorDefs.hpp
  Log:
  Changes to support MACHO build under CodeWarrior
  
  Revision  Changes    Path
  1.3       +4 -3      xml-xerces/c/src/xercesc/util/Compilers/CodeWarriorDefs.cpp
  
  Index: CodeWarriorDefs.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Compilers/CodeWarriorDefs.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CodeWarriorDefs.cpp	12 Jul 2002 16:48:49 -0000	1.2
  +++ CodeWarriorDefs.cpp	22 Aug 2002 23:57:02 -0000	1.3
  @@ -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)
   {
  
  
  
  1.7       +6 -5      xml-xerces/c/src/xercesc/util/Compilers/CodeWarriorDefs.hpp
  
  Index: CodeWarriorDefs.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Compilers/CodeWarriorDefs.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CodeWarriorDefs.hpp	12 Jul 2002 16:48:49 -0000	1.6
  +++ CodeWarriorDefs.hpp	22 Aug 2002 23:57:02 -0000	1.7
  @@ -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 @@
   
   // ---------------------------------------------------------------------------
   //  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
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org