diff options
author | miguel <medalist@sapo.pt> | 2021-01-05 19:40:55 +0000 |
---|---|---|
committer | miguel <medalist@sapo.pt> | 2021-01-05 19:40:55 +0000 |
commit | f2bfeb92b7d63ee4edbbe7f4e6078187a8e86ea0 (patch) | |
tree | 1e6c72aa889798afc44a5702f994bc3f3f85d8d7 /tools/tiffmedian.c | |
parent | dcd410f6374244fea9f03001e38df70efb970096 (diff) | |
download | libtiff-git-f2bfeb92b7d63ee4edbbe7f4e6078187a8e86ea0.tar.gz |
tiff tools: include 'libport.h', remove local definition of 'getopt()'
Diffstat (limited to 'tools/tiffmedian.c')
-rw-r--r-- | tools/tiffmedian.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/tiffmedian.c b/tools/tiffmedian.c index 4f55b2e1..a7f9a923 100644 --- a/tools/tiffmedian.c +++ b/tools/tiffmedian.c @@ -39,6 +39,7 @@ */ #include "tif_config.h" +#include "libport.h" #include <stdio.h> #include <stdlib.h> @@ -48,10 +49,6 @@ # include <unistd.h> #endif -#ifdef NEED_LIBPORT -# include "libport.h" -#endif - #include "tiffio.h" #ifndef EXIT_SUCCESS @@ -61,10 +58,6 @@ #define EXIT_FAILURE 1 #endif -#ifndef HAVE_GETOPT -extern int getopt(int argc, char * const argv[], const char *optstring); -#endif - #define MAX_CMAP_SIZE 256 #define streq(a,b) (strcmp(a,b) == 0) |