[Expat-bugs] [ expat-Bugs-644343 ] (expat 1.95.5) 'const' keyword

noreply@sourceforge.net noreply@sourceforge.net
Tue Nov 26 21:54:14 2002


Bugs item #644343, was opened at 2002-11-27 00:12
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=644343&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Artyom Bolgar (artyom17)
Assigned to: Nobody/Anonymous (nobody)
Summary: (expat 1.95.5) 'const' keyword

Initial Comment:
Not all C-compilers knows the 'const' keyword 
(especially old ones). That is why I propse to add the 
following lines into expat.h file:

#ifndef __cplusplus
#define const
#endif

It defines 'const' as empty identifier and everything is 
compiled OK. I attached the diff file for 1.95.5.
Thanks.

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

>Comment By: Artyom Bolgar (artyom17)
Date: 2002-11-27 00:54

Message:
Logged In: YES 
user_id=657326

More exactly, will be better to change it to:

#ifdef XML_NOCONST
#define const
#endif

I guess.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=644343&group_id=10127



More information about the Expat-bugs mailing list