summaryrefslogtreecommitdiff
path: root/tiff/port/libport.h
diff options
context:
space:
mode:
Diffstat (limited to 'tiff/port/libport.h')
-rw-r--r--tiff/port/libport.h42
1 files changed, 7 insertions, 35 deletions
diff --git a/tiff/port/libport.h b/tiff/port/libport.h
index 9f2dace14..cd8acf984 100644
--- a/tiff/port/libport.h
+++ b/tiff/port/libport.h
@@ -24,9 +24,13 @@
#ifndef _LIBPORT_
#define _LIBPORT_
-#if defined(HAVE_CONFIG_H)
-# include <tif_config.h>
-#endif
+#include <libport_config.h>
+
+#if HAVE_GETOPT
+# if HAVE_UNISTD_H
+# include <unistd.h>
+# endif
+#else
int getopt(int argc, char * const argv[], const char *optstring);
extern char *optarg;
@@ -34,38 +38,6 @@ extern int opterr;
extern int optind;
extern int optopt;
-int strcasecmp(const char *s1, const char *s2);
-
-#ifndef HAVE_GETOPT
-# define HAVE_GETOPT 1
-#endif
-
-#if !defined(HAVE_STRTOL)
-long strtol(const char *nptr, char **endptr, int base);
-#endif
-#if !defined(HAVE_STRTOLL)
-long long strtoll(const char *nptr, char **endptr, int base);
-#endif
-#if !defined(HAVE_STRTOUL)
-unsigned long strtoul(const char *nptr, char **endptr, int base);
-#endif
-#if !defined(HAVE_STRTOULL)
-unsigned long long strtoull(const char *nptr, char **endptr, int base);
-#endif
-
-#if 0
-void *
-lfind(const void *key, const void *base, size_t *nmemb, size_t size,
- int(*compar)(const void *, const void *));
-#endif
-
-#if !defined(HAVE_SNPRINTF)
-#undef vsnprintf
-#define vsnprintf _TIFF_vsnprintf_f
-
-#undef snprintf
-#define snprintf _TIFF_snprintf_f
-int snprintf(char* str, size_t size, const char* format, ...);
#endif
#endif /* ndef _LIBPORT_ */