20 #ifndef _tds_sysdep_public_h_ 21 #define _tds_sysdep_public_h_ 33 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) 35 #define tds_sysdep_int16_type short 36 #define tds_sysdep_int32_type int 37 #define tds_sysdep_int64_type __int64 38 #define tds_sysdep_real32_type float 39 #define tds_sysdep_real64_type double 40 #if !defined(WIN64) && !defined(_WIN64) 41 #define tds_sysdep_intptr_type int 43 #define tds_sysdep_intptr_type __int64 47 #ifndef tds_sysdep_int16_type 48 #define tds_sysdep_int16_type short 51 #ifndef tds_sysdep_int32_type 52 #define tds_sysdep_int32_type int 55 #ifndef tds_sysdep_int64_type 56 #define tds_sysdep_int64_type long 59 #ifndef tds_sysdep_real32_type 60 #define tds_sysdep_real32_type float 63 #ifndef tds_sysdep_real64_type 64 #define tds_sysdep_real64_type double 67 #ifndef tds_sysdep_intptr_type 68 #define tds_sysdep_intptr_type long 71 #if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32) 72 typedef int TDS_SYS_SOCKET;
73 #define INVALID_SOCKET -1 74 #define TDS_IS_SOCKET_INVALID(s) ((s) < 0) 76 typedef SOCKET TDS_SYS_SOCKET;
77 #define TDS_IS_SOCKET_INVALID(s) ((s) == INVALID_SOCKET) 80 #if !defined(MSDBLIB) && !defined(SYBDBLIB) 83 #if defined(MSDBLIB) && defined(SYBDBLIB) 84 #error MSDBLIB and SYBDBLIB cannot both be defined