Blame port/libport.h

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