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.8.2.1 2004/11/28 10:48:01 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 #define tds_sysdep_intptr_type int      
00042 #endif                          
00043 
00044 #ifndef tds_sysdep_int16_type
00045 #define tds_sysdep_int16_type short     
00046 #endif                          
00047 
00048 #ifndef tds_sysdep_int32_type
00049 #define tds_sysdep_int32_type int       
00050 #endif                          
00051 
00052 #ifndef tds_sysdep_int64_type
00053 #define tds_sysdep_int64_type long long 
00054 #endif                          
00055 
00056 #ifndef tds_sysdep_real32_type
00057 #define tds_sysdep_real32_type float    
00058 #endif                          
00059 
00060 #ifndef tds_sysdep_real64_type
00061 #define tds_sysdep_real64_type double   
00062 #endif                          
00063 
00064 #ifndef tds_sysdep_intptr_type
00065 #define tds_sysdep_intptr_type int
00066 #endif                          
00067 
00068 #if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32)
00069 typedef int TDS_SYS_SOCKET;
00070 #define INVALID_SOCKET -1
00071 #define TDS_IS_SOCKET_INVALID(s) ((s) < 0)
00072 #else
00073 typedef SOCKET TDS_SYS_SOCKET;
00074 #define TDS_IS_SOCKET_INVALID(s) ((s) == INVALID_SOCKET)
00075 #endif
00076 
00077 #if !defined(MSDBLIB) && !defined(SYBDBLIB)
00078 #define SYBDBLIB 1
00079 #endif
00080 #if defined(MSDBLIB) && defined(SYBDBLIB)
00081 #error MSDBLIB and SYBDBLIB cannot both be defined
00082 #endif
00083 
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087 
00088 #endif