Hi,

Thanks to all for your great feedback.

I'm considering as a solution to add a conditional 
#define named "LCMS_WIN_TYPES_ALREADY_DEFINED"

That would only take effect on non-windows compilation.

If this special flag is declared, then the types:

BYTE, LPBYTE, WORD, LPWORD
DWORD, LPDWORD, BOOL, FALSE, TRUE;
LPSTR, LPVOID, FAR, LOWORD()   HIWORD()  
MAX_PATH    

would NOT be defined by lcms.h, and is up to the programmer
to give a proper declaration *before* including lcms header file.

In this way, backwards compatibility is granted. 

If source code has any of those types already defined, should 
define all remaing, and invoke lcms.h as

#define LCMS_WIN_TYPES_ALREADY_DEFINED   1
#include "lcms.h"

The only drawback I can see is integral types should agree, but 
that seems not to be a big problem at all.

Has anybody any issue on that?

Regards,
Marti Maria
The little cms project
http://www.littlecms.com





-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to