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 static char rcsid_tds_sysdep_public_h[] = "$Id: tds_sysdep_public.h.in,v 1.6 2003/10/24 10:11:11 freddy77 Exp $";
00024 static void *no_unused_tds_sysdep_public_h_warn[] = { rcsid_tds_sysdep_public_h, no_unused_tds_sysdep_public_h_warn };
00025
00026 #ifdef __cplusplus
00027 extern "C"
00028 {
00029 #endif
00030
00031
00032
00033
00034 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
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 #endif
00042
00043 #ifndef tds_sysdep_int16_type
00044 #define tds_sysdep_int16_type short
00045 #endif
00046
00047 #ifndef tds_sysdep_int32_type
00048 #define tds_sysdep_int32_type int
00049 #endif
00050
00051 #ifndef tds_sysdep_int64_type
00052 #define tds_sysdep_int64_type long long
00053 #endif
00054
00055 #ifndef tds_sysdep_real32_type
00056 #define tds_sysdep_real32_type float
00057 #endif
00058
00059 #ifndef tds_sysdep_real64_type
00060 #define tds_sysdep_real64_type double
00061 #endif
00062
00063 #if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32)
00064 typedef int TDS_SYS_SOCKET;
00065 #define INVALID_SOCKET -1
00066 #define TDS_IS_SOCKET_INVALID(s) ((s) < 0)
00067 #else
00068 typedef SOCKET TDS_SYS_SOCKET;
00069 #define TDS_IS_SOCKET_INVALID(s) ((s) == INVALID_SOCKET)
00070 #endif
00071
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075
00076 #endif