[Expat-bugs] [ expat-Patches-412072 ] Expat for Codewarrior 6.0 / Win32

noreply@sourceforge.net noreply@sourceforge.net
Wed, 28 Mar 2001 18:41:00 -0800


Patches item #412072, was updated on 2001-03-28 18:40
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=412072&group_id=10127

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: David Crowley (dcrowley)
Assigned to: Nobody/Anonymous (nobody)
Summary: Expat for Codewarrior 6.0 / Win32

Initial Comment:
I am forwarding some patches I got from Aleksander 
Slominski <aslom at cs.indiana.edu>:
.
.
.
now about EXPAT in all files: xmlparse.c, xmlrole.c, 
xmltok.c add at top
following line to make sure to include correct config 
file:

#if defined(__MWERKS__) && defined(__INTEL__)
#define COMPILED_FROM_DSP
#endif

but xmlparse.c must be expanded to contain:


#if defined(__MWERKS__) && defined(__INTEL__)
#define COMPILED_FROM_DSP
#define VERSION "expat_1.95.1"
#include <stddef.h>
#define offsetof(BLOCK, s) (size_t) &(((BLOCK *) 0)->s)
#endif

and also ELEMENT_TYPE somehow get wrongly declared but 
as is used only in
this file just do search/replace to X_ELEMENT_TYPE

also do not include in compilation xmltok_ns* and 
xmltok_impl.c as those are
really include files...

i also attach modified files

thanks,

alek
--
Aleksander Slominski, LH 316, IU, 
http://www.extreme.indiana.edu/~aslom



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=412072&group_id=10127