WvStreams
|
00001 #ifndef __WIN32_SANITIZE_H 00002 #define __WIN32_SANITIZE_H 00003 00004 #ifdef __GNUC__ 00005 #include "wvautoconf.h" 00006 #endif 00007 00008 #include <basetyps.h> 00009 #include <objbase.h> 00010 #include <signal.h> 00011 #include <winsock.h> 00012 #include <malloc.h> 00013 #include <io.h> 00014 00015 #ifndef _SYS_GUID_OPERATOR_EQ_ 00016 #define _SYS_GUID_OPERATOR_EQ_ 1 00017 #endif 00018 00019 #ifndef SIGALRM 00020 #define SIGALRM 14 00021 #endif 00022 00023 #ifndef SIGPIPE 00024 #define SIGPIPE 13 00025 #endif 00026 00027 #ifndef ECONNREFUSED 00028 #define ECONNREFUSED WSAECONNREFUSED 00029 #endif 00030 00031 #ifndef EWOULDBLOCK 00032 #define EWOULDBLOCK WSAEWOULDBLOCK 00033 #endif 00034 00035 00036 typedef int socklen_t; 00037 00038 #ifdef __cplusplus 00039 extern "C" { 00040 #endif 00041 00042 unsigned int sleep(unsigned int secs); 00043 extern pid_t getpid(); 00044 00045 unsigned int alarm(unsigned int t); 00046 int fsync(int fd); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 // refer to _wvinitialize to ensure that we suck in some stuff that makes 00053 // wvstreams actually work properly. 00054 #ifdef __cplusplus 00055 extern void *_wvinitialize; 00056 static void *_wvinitialize_local = _wvinitialize; 00057 #endif 00058 00059 // #define _alloca(x) alloca(x) 00060 00061 #endif // __WIN32_SANITIZE_H