AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.10.29 17:43 "Re: Tiff Digest, Vol 65, Issue 9", by Richard Nolde
2009.10.29 18:08 "Re: Tiff Digest, Vol 65, Issue 9", by Bob Friesenhahn
2009.10.30 04:18 "Tiffcrop warnings", by Richard Nolde
2009.11.01 18:49 "Re: Tiffcrop warnings", by Edward Lam
2009.11.02 00:15 "Re: Tiffcrop warnings", by Richard Nolde
2009.11.02 03:30 "Re: Tiffcrop warnings", by Edward Lam
2009.11.02 04:03 "Re: Tiffcrop warnings", by Bob Friesenhahn
2009.11.02 08:22 "Re: Tiffcrop warnings", by Juergen Buchmueller
2009.10.29 18:21 "Re: Tiff Digest, Vol 65, Issue 9", by Toby Thain

2009.11.02 04:03 "Re: Tiffcrop warnings", by Bob Friesenhahn

On Sun, 1 Nov 2009, Edward Lam wrote:
>
> What this approach will NOT fix though are platforms that don't use libport 
> AND do not declare getopt()/optind in unistd.h. Not sure which Unix platforms 
> don't have unistd.h with getopt()/optind though. :)

These extern declarations should be safe for any unixish 'getopt':

extern char *optarg;
extern int optind, opterr, optopt;

Older Unix standards specified including <stdio.h> rather than 
<unistd.h>.

It does seem like a good idea to add these missing extern statements 
to port/libport.h.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/