Re: libpng-1.6.30 is available

Glenn Randers-Pehrson <[email protected]>
Newsgroups gmane.comp.graphics.png.devel
Message-ID <CA+PdXcti5AZ26OGc_GMg4p2sgZpO6B_W15pZ04Pk4XbO0OqLzA@mail.gmail.com>
On Thu, Jun 29, 2017 at 5:17 PM, Michael Felt <[email protected]> wrote:

> Looking good - However, the make install seems to run one part with a +x
> output.
>
> This is AIX and xlc (not gcc).
>
>[...]
> "../src/libpng-1.6.30/mips/../pngpriv.h", line 38.9: 1506-236 (W) Macro name
> _POSIX_SOURCE has been redefined.
> "../src/libpng-1.6.30/mips/../pngpriv.h", line 38.9: 1506-358 (I)
> "_POSIX_SOURCE" is defined on line 145 of /usr/include/standards.h.
> "../src/libpng-1.6.30/powerpc/../pngpriv.h", line 38.9: 1506-236 (W) Macro
> name _POSIX_SOURCE has been redefined.
> "../src/libpng-1.6.30/powerpc/../pngpriv.h", line 38.9: 1506-358 (I)
> "_POSIX_SOURCE" is defined on line 145 of /usr/include/standards.h.
>[...]

Does it help to guard the definition of _POSIX_SOURCE in pngpriv.h
like this:

#ifndef _POSIX_SOURCE
# define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
#endif

Glenn

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.