Loading...
Searching...
No Matches
20#ifndef _tds_sysdep_public_h_
21#define _tds_sysdep_public_h_
28#if (!defined(_MSC_VER) && defined(__cplusplus) && __cplusplus >= 201103L) || \
29 (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
31#elif (defined(__sun) && defined(__SVR4)) || defined(__hpux)
34typedef signed char int8_t;
35typedef unsigned char uint8_t;
39# if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
43 typedef signed short int16_t;
44 typedef unsigned short uint16_t;
45 typedef signed int int32_t;
46 typedef unsigned int uint32_t;
47 typedef signed __int64 int64_t;
48 typedef unsigned __int64 uint64_t;
49# if !defined(WIN64) && !defined(_WIN64)
50 typedef signed int intptr_t;
51 typedef unsigned int uintptr_t;
53 typedef signed __int64 intptr_t;
54 typedef unsigned __int64 uintptr_t;
57 typedef signed short int16_t;
58 typedef unsigned short uint16_t;
59 typedef signed int int32_t;
60 typedef unsigned int uint32_t;
61 typedef signed long int64_t;
62 typedef unsigned long uint64_t;
63 typedef signed long intptr_t;
64 typedef unsigned long uintptr_t;
72# if FLT_MANT_DIG == 24 && FLT_MAX_EXP == 128
73# define tds_sysdep_real32_type float
74# elif DBL_MANT_DIG == 24 && DBL_MAX_EXP == 128
75# define tds_sysdep_real32_type double
76# elif LDBL_MANT_DIG == 24 && LDBL_MAX_EXP == 128
77# define tds_sysdep_real32_type long double
79# if FLT_MANT_DIG == 53 && FLT_MAX_EXP == 1024
80# define tds_sysdep_real64_type float
81# elif DBL_MANT_DIG == 53 && DBL_MAX_EXP == 1024
82# define tds_sysdep_real64_type double
83# elif LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
84# define tds_sysdep_real64_type long double
86# if !defined(tds_sysdep_real32_type) || !defined(tds_sysdep_real64_type)
87# error Some float type was not found!
90# if FLT_DIG == 6 && FLT_MAX_10_EXP == 38
91# define tds_sysdep_real32_type float
92# elif DBL_DIG == 6 && DBL_MAX_10_EXP == 38
93# define tds_sysdep_real32_type double
94# elif LDBL_DIG == 6 && LDBL_MAX_10_EXP == 38
95# define tds_sysdep_real32_type long double
97# if FLT_DIG == 15 && FLT_MAX_10_EXP == 308
98# define tds_sysdep_real64_type float
99# elif DBL_DIG == 15 && DBL_MAX_10_EXP == 308
100# define tds_sysdep_real64_type double
101# elif LDBL_DIG == 15 && LDBL_MAX_10_EXP == 308
102# define tds_sysdep_real64_type long double
107#ifndef tds_sysdep_real32_type
108#define tds_sysdep_real32_type float
111#ifndef tds_sysdep_real64_type
112#define tds_sysdep_real64_type double
115#if !defined(MSDBLIB) && !defined(SYBDBLIB)
118#if defined(MSDBLIB) && defined(SYBDBLIB)
119#error MSDBLIB and SYBDBLIB cannot both be defined