wvwin32-sanitize.h

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 
00014 #ifndef _SYS_GUID_OPERATOR_EQ_
00015 #define _SYS_GUID_OPERATOR_EQ_ 1
00016 #endif
00017 
00018 #ifndef SIGALRM
00019 #define SIGALRM 14
00020 #endif
00021 
00022 #ifndef SIGPIPE
00023 #define SIGPIPE 13
00024 #endif
00025 
00026 #ifndef ECONNREFUSED
00027 #define ECONNREFUSED WSAECONNREFUSED
00028 #endif
00029 
00030 #ifndef EWOULDBLOCK
00031 #define EWOULDBLOCK WSAEWOULDBLOCK
00032 #endif
00033 
00034 
00035 typedef int socklen_t;
00036 
00037 // FIXME: this makes alarms silently fail.  They should probably fail more
00038 // nicely, or (better still) actually work...
00039 static inline unsigned int alarm(unsigned int t) { return 0; }
00040 
00041 // refer to _wvinitialize to ensure that we suck in some stuff that makes
00042 // wvstreams actually work properly.
00043 #ifdef __cplusplus
00044 extern void *_wvinitialize;
00045 static void *_wvinitialize_local = _wvinitialize;
00046 #endif
00047 
00048 // #define _alloca(x) alloca(x)
00049 
00050 #endif // __WIN32_SANITIZE_H

Generated on Wed Jul 12 17:53:22 2006 for WvStreams by  doxygen 1.4.7