Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef SocketConfig_h_
00009 #define SocketConfig_h_
00010
00011
00012
00013
00014
00015
00016
00017 #define STDC_HEADERS 1
00018
00019
00020 #define _OS_HAS_SOCKLEN_T 1
00021
00022 #define _ACCEPT_USES_SOCKLEN_T 1
00023
00024 #define _GETSOCKNAME_USES_SOCKLEN_T 1
00025
00026
00027 #define HAVE_STRERROR 1
00028
00029
00030 #define HAVE_SYS_SOCKET_H 1
00031
00032
00033 #define HAVE_SYS_TYPES_H 1
00034
00035
00036 #define HAVE_UNISTD_H 1
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #ifdef __SUNPRO_CC // __SUNPRO_CC always defined for Sun CC 4.2
00048 #ifdef ansi
00049 #ifndef __STRICT_ANSI__
00050 #define __STRICT_ANSI__
00051 #endif // __STRICT_ANSI__
00052 #endif // ansi
00053 #endif // __SUNPRO_CC
00054
00055
00056
00057 #ifdef __WIN32 // __WIN32 always defined for Microsoft Visual C++ 5.0
00058 #ifdef ansi
00059 #ifndef __STRICT_ANSI__
00060 #define __STRICT_ANSI__
00061 #endif // __STRICT_ANSI__
00062 #endif // ansi
00063 #endif // __WIN32
00064
00065
00066
00067 #ifndef __STRICT_ANSI__
00068 #if defined (unix) && !defined(_WINDOWS) && !defined(WIN32) && !defined(_WIN32) && !defined(__NT__) && !defined(_WINDOWS)&& !defined(OS2)
00069 #include <unistd.h>
00070 #endif // unix style
00071 #if (defined (_WINDOWS) || defined(__NT__)) && !defined (unix)
00072 #include <windows.h>
00073 #include <process.h>
00074 #endif // windows style
00075 #endif // __STRICT_ANSI__
00076
00077
00078 #endif // SocketConfig_h_