WvStreams
wvwin32-sanitize.h
1 #ifndef __WIN32_SANITIZE_H
2 #define __WIN32_SANITIZE_H
3 
4 #ifdef __GNUC__
5 #include "wvautoconf.h"
6 #endif
7 
8 #include <basetyps.h>
9 #include <objbase.h>
10 #include <signal.h>
11 #include <winsock.h>
12 #include <malloc.h>
13 #include <io.h>
14 
15 #ifndef _SYS_GUID_OPERATOR_EQ_
16 #define _SYS_GUID_OPERATOR_EQ_ 1
17 #endif
18 
19 #ifndef SIGALRM
20 #define SIGALRM 14
21 #endif
22 
23 #ifndef SIGPIPE
24 #define SIGPIPE 13
25 #endif
26 
27 #ifndef ECONNREFUSED
28 #define ECONNREFUSED WSAECONNREFUSED
29 #endif
30 
31 #ifndef EWOULDBLOCK
32 #define EWOULDBLOCK WSAEWOULDBLOCK
33 #endif
34 
35 
36 typedef int socklen_t;
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 unsigned int sleep(unsigned int secs);
43 extern pid_t getpid();
44 
45 unsigned int alarm(unsigned int t);
46 int fsync(int fd);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 // refer to _wvinitialize to ensure that we suck in some stuff that makes
53 // wvstreams actually work properly.
54 #ifdef __cplusplus
55 extern void *_wvinitialize;
56 static void *_wvinitialize_local = _wvinitialize;
57 #endif
58 
59 // #define _alloca(x) alloca(x)
60 
61 #endif // __WIN32_SANITIZE_H