[quake3-bugzilla] [Bug 5521] building against Gentoo-patched zlib fails due to use of OF() macro

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Tue May 29 06:52:08 EDT 2012


https://bugzilla.icculus.org/show_bug.cgi?id=5521

Simon McVittie <smcv-ioquake3 at pseudorandom.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smcv-ioquake3 at pseudorandom.
                   |                            |co.uk
            Summary|Building fails with newer   |building against
                   |zlib headers                |Gentoo-patched zlib fails
                   |                            |due to use of OF() macro

--- Comment #2 from Simon McVittie <smcv-ioquake3 at pseudorandom.co.uk> 2012-05-29 06:52:06 EDT ---
It sounds as though OF() is meant to be private to zlib itself (i.e. not public
API), but is used by unzip.[ch] and ioapi.[ch] anyway.

The easiest solution is probably to expand OF() to its ISO C definition
(replace OF((foo)) with (foo)) throughout code/qcommon. ioquake3 uses ISO C
prototypes elsewhere anyway, so it won't (and shouldn't!) compile on ancient
K&R C compilers.

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list