Blame port/libport.h

Packit 85355f
/* $Id: libport.h,v 1.5 2015-08-19 02:31:04 bfriesen Exp $ */
Packit 85355f
Packit 85355f
/*
Packit 85355f
 * Copyright (c) 2009 Frank Warmerdam
Packit 85355f
 *
Packit 85355f
 * Permission to use, copy, modify, distribute, and sell this software and 
Packit 85355f
 * its documentation for any purpose is hereby granted without fee, provided
Packit 85355f
 * that (i) the above copyright notices and this permission notice appear in
Packit 85355f
 * all copies of the software and related documentation, and (ii) the names of
Packit 85355f
 * Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit 85355f
 * publicity relating to the software without the specific, prior written
Packit 85355f
 * permission of Sam Leffler and Silicon Graphics.
Packit 85355f
 * 
Packit 85355f
 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit 85355f
 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit 85355f
 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit 85355f
 * 
Packit 85355f
 * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit 85355f
 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit 85355f
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit 85355f
 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
Packit 85355f
 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
Packit 85355f
 * OF THIS SOFTWARE.
Packit 85355f
 */
Packit 85355f
Packit 85355f
#ifndef _LIBPORT_
Packit 85355f
#define	_LIBPORT_
Packit 85355f
Packit 85355f
int getopt(int argc, char * const argv[], const char *optstring);
Packit 85355f
extern   char *optarg;
Packit 85355f
extern   int opterr;
Packit 85355f
extern   int optind;
Packit 85355f
extern   int optopt;
Packit 85355f
Packit 85355f
int strcasecmp(const char *s1, const char *s2);
Packit 85355f
Packit 85355f
#ifndef HAVE_GETOPT
Packit 85355f
#  define HAVE_GETOPT 1
Packit 85355f
#endif
Packit 85355f
Packit 85355f
#if 0
Packit 85355f
unsigned long strtoul(const char *nptr, char **endptr, int base);
Packit 85355f
#endif
Packit 85355f
Packit 85355f
#if 0
Packit 85355f
void *
Packit 85355f
lfind(const void *key, const void *base, size_t *nmemb, size_t size,
Packit 85355f
      int(*compar)(const void *, const void *));
Packit 85355f
#endif
Packit 85355f
Packit 85355f
#if !defined(HAVE_SNPRINTF)
Packit 85355f
#undef vsnprintf
Packit 85355f
#define vsnprintf _TIFF_vsnprintf_f
Packit 85355f
Packit 85355f
#undef snprintf
Packit 85355f
#define snprintf _TIFF_snprintf_f
Packit 85355f
int snprintf(char* str, size_t size, const char* format, ...);
Packit 85355f
#endif
Packit 85355f
Packit 85355f
#endif /* ndef _LIBPORT_ */