00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _tds_sysdep_public_h_
00021 #define _tds_sysdep_public_h_
00022
00023
00024
00025 #ifdef __cplusplus
00026 extern "C"
00027 {
00028 #endif
00029
00030
00031
00032
00033 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
00034 #include <winsock2.h>
00035 #include <windows.h>
00036 #define tds_sysdep_int16_type short
00037 #define tds_sysdep_int32_type int
00038 #define tds_sysdep_int64_type __int64
00039 #define tds_sysdep_real32_type float
00040 #define tds_sysdep_real64_type double
00041 #if !defined(WIN64) && !defined(_WIN64)
00042 #define tds_sysdep_intptr_type int
00043 #else
00044 #define tds_sysdep_intptr_type __int64
00045 #endif
00046 #endif
00047
00048 #ifndef tds_sysdep_int16_type
00049 #define tds_sysdep_int16_type short
00050 #endif
00051
00052 #ifndef tds_sysdep_int32_type
00053 #define tds_sysdep_int32_type int
00054 #endif
00055
00056 #ifndef tds_sysdep_int64_type
00057 #define tds_sysdep_int64_type long
00058 #endif
00059
00060 #ifndef tds_sysdep_real32_type
00061 #define tds_sysdep_real32_type float
00062 #endif
00063
00064 #ifndef tds_sysdep_real64_type
00065 #define tds_sysdep_real64_type double
00066 #endif
00067
00068 #ifndef tds_sysdep_intptr_type
00069 #define tds_sysdep_intptr_type long
00070 #endif
00071
00072 #if !defined(MSDBLIB) && !defined(SYBDBLIB)
00073 #define SYBDBLIB 1
00074 #endif
00075 #if defined(MSDBLIB) && defined(SYBDBLIB)
00076 #error MSDBLIB and SYBDBLIB cannot both be defined
00077 #endif
00078
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082
00083 #endif