On Tue, 21 Oct 2003, Marti Maria wrote:

> Hi,
>
> >I am working on an image library with GNUstep and it has to define BOOL which
> >lcms also defined it so I have to remove the BOOL from lcms.h to make it compiled.
> >Would anyone please suggest me a comfortable way around this?
>
> Ops, namespace clash ... nasty stuff. Since it is typedef'd, I cannot use #ifdef.
>
> A quick hack would be to place a #define before the #include
>
> #define BOOL LCMS_BOOL
> #include "lcms.h"
>
> Any better idea?

It would be best if LCMS did not use Microsoft Windows-defined types
in its interface.  Perhaps it is too late to change this.

I think that Microsoft Windows generally uses defines rather than
typedefs for its types.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to