/* FreeTDS - Library of routines accessing Sybase and Microsoft databases * Copyright (C) 1998-1999 Brian Bruns * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef _replacements_h_ #define _replacements_h_ #ifdef __cplusplus extern "C" { #if 0 } #endif #endif /* $Id: replacements.h,v 1.14 2005/12/21 08:06:54 freddy77 Exp $ */ #include #include "tds_sysdep_public.h" #if !HAVE_VSNPRINTF int vsnprintf(char *ret, size_t max, const char *fmt, va_list ap); #endif /* !HAVE_VSNPRINTF */ #if !HAVE_ASPRINTF int asprintf(char **ret, const char *fmt, ...); #endif /* !HAVE_ASPRINTF */ #if !HAVE_VASPRINTF int vasprintf(char **ret, const char *fmt, va_list ap); #endif /* !HAVE_VASPRINTF */ #if !HAVE_ATOLL tds_sysdep_int64_type atoll(const char *nptr); #endif /* !HAVE_ATOLL */ #if !HAVE_STRTOK_R char *strtok_r(char *str, const char *sep, char **lasts); #endif /* !HAVE_STRTOK_R */ #ifndef HAVE_READPASSPHRASE # include #else # include #endif #if HAVE_STRLCPY #define tds_strlcpy(d,s,l) strlcpy(d,s,l) #else size_t tds_strlcpy(char *dest, const char *src, size_t len); #endif #if HAVE_STRLCAT #define tds_strlcat(d,s,l) strlcat(d,s,l) #else size_t tds_strlcat(char *dest, const char *src, size_t len); #endif #if HAVE_BASENAME #define tds_basename(s) basename(s) #else char *tds_basename(char *path); #endif #ifdef __cplusplus #if 0 { #endif } #endif #endif