Bug 687518 - Jasper headers pollute namespace
Summary: Jasper headers pollute namespace
Status: NOTIFIED FIXED
Alias: None
Product: JasPer
Classification: Unclassified
Component: Library API (show other bugs)
Version: 1.701.0
Hardware: All All
: P2 normal
Assignee: Ralph Giles
URL:
Keywords:
: 687506 688197 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-16 03:05 UTC by Ralph Giles
Modified: 2008-12-19 08:31 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***