Bug 687518

Summary: Jasper headers pollute namespace
Product: JasPer Reporter: Ralph Giles <ralph.giles>
Component: Library APIAssignee: Ralph Giles <ralph.giles>
Status: NOTIFIED FIXED    
Severity: normal CC: martin, samg
Priority: P2    
Version: 1.701.0   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Ralph Giles 2004-06-16 03:05:57 UTC
jasper.h includes among other things jas_types.h, which doesn't so much define
types used by the libjasper api as pull in a bunch of headers and basic typedefs
for the convenience the of the library's own compile, polluting the namespace of
the client application.

In particular, the inclusiong of stdbool.h is causing a conflict with
Ghostscript's local definition of the bool type on some systems.

This, and probably significant other parts of the jasper includes should be
internalized to private headers and not exported to clients.
Comment 1 Ralph Giles 2004-06-16 03:10:58 UTC
*** Bug 687506 has been marked as a duplicate of this bug. ***
Comment 2 Igor Melichev 2004-06-17 01:47:04 UTC
Also noticed a problem with stdbool.h building on RedHat Linux 7.3 .
gs8.30 can't compile.
Comment 3 Ralph Giles 2005-07-07 02:01:18 UTC
This has been fixed in the svn trunk with Lennard's commit to replace stdbool.h
with a jas_bool typedef.
Comment 4 Ralph Giles 2005-07-07 02:09:49 UTC
*** Bug 688197 has been marked as a duplicate of this bug. ***