/* include/config.h for FreeTDS 1.5.20 on RISC OS (Acorn C, TCPIPLibs).
 * Hand written in place of configure output; built without TLS, iconv,
 * Kerberos, threads, MARS and wide ODBC calls. */

#ifndef _freetds_config_h_
#define _freetds_config_h_

#define PACKAGE "freetds"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "FreeTDS"
#define PACKAGE_STRING "FreeTDS 1.5.20"
#define PACKAGE_TARNAME "freetds"
#define PACKAGE_URL ""
#define PACKAGE_VERSION "1.5.20"
#define VERSION "1.5.20"

#define STDC_HEADERS 1
#define HAVE_ERRNO_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_SIGNAL_H 1
#define HAVE_STDBOOL_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_WCHAR_H 1

/* TCPIPLibs */
#define HAVE_ARPA_INET_H 1
#define HAVE_NETDB_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_NETINET_TCP_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1

#ifdef RISCOS
/* use the replacements/getaddrinfo inet_addr/gethostbyname code: RISC OS TCPIPLibs versions vary */
#undef HAVE_GETADDRINFO
#else
#define HAVE_GETADDRINFO 1
#endif
#define HAVE_GETHOSTNAME 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_INET_NTOP 1
#define HAVE_STRLCAT 1
#define HAVE_STRLCPY 1
#define HAVE_STRSEP 1
#define HAVE_USLEEP 1
#define HAVE_VSNPRINTF 1
#define HAVE_LONG_LONG 1

/* iODBC35201 */
#define HAVE_IODBCINST_H 1
#define HAVE_SQLGETPRIVATEPROFILESTRING 1
#define HAVE_SQLLEN 1
#define HAVE_SQLROWOFFSET 1
#define HAVE_SQLROWSETSIZE 1
#define HAVE_SQLSETPOSIROW 1
#define TDS_SQLCOLATTRIBUTE_SQLLEN 1
#define TDS_SQLPARAMOPTIONS_SQLLEN 1
#define SIZEOF_SQLWCHAR 2

#define SIZEOF_CHAR 1
#define SIZEOF_SHORT 2
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG_INT 4
#define SIZEOF_LONG_LONG 8
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define SIZEOF_LONG_DOUBLE 8
#define SIZEOF_VOID_P 4
#define SIZEOF_WCHAR_T 4
#define SIZEOF___INT64 0
#define SIZEOF___INT128 0

#define ICONV_CONST const
#define NULL_REP_IS_ZERO_BYTES 1


#define TDS_I64_PREFIX "ll"
#define TDS_NO_THREADSAFE 1

/* TCPIPLibs headers expect the BSD types to be declared first */
#include <stdint.h>
#include <sys/types.h>

/* strdup, strcasecmp, strlcpy etc. from TCPIPLibs unixlib */
#include <unixlib.h>

/* BSD errno values used by TCPIPLibs sockets. <sys/errno.h> is not
 * included because it renumbers the C library's EDOM, ERANGE and EILSEQ. */
#include <errno.h>
#ifndef EINTR
#define EINTR		4
#endif
#ifndef E2BIG
#define E2BIG		7
#endif
#ifndef ENOMEM
#define ENOMEM		12
#endif
#ifndef EFAULT
#define EFAULT		14
#endif
#ifndef EINVAL
#define EINVAL		22
#endif
#ifndef EPIPE
#define EPIPE		32
#endif
#ifndef EAGAIN
#define EAGAIN		35
#endif
#ifndef EWOULDBLOCK
#define EWOULDBLOCK	EAGAIN
#endif
#ifndef EINPROGRESS
#define EINPROGRESS	36
#endif
#ifndef EOPNOTSUPP
#define EOPNOTSUPP	45
#endif
#ifndef ENOTSUP
#define ENOTSUP		EOPNOTSUPP
#endif
#ifndef ECONNRESET
#define ECONNRESET	54
#endif
#ifndef ETIMEDOUT
#define ETIMEDOUT	60
#endif

#endif /* _freetds_config_h_ */
