ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
windows_errno.h
Go to the documentation of this file.
1#pragma once
2
55// Windows errno compatibility definitions
56// These constants are not defined in Windows headers by default
57// This header must be included before any Windows headers
58
59// Only define errno constants if they're not already defined by the system
60#ifndef EINVAL
61#define EINVAL 22
62#endif
63
64#ifndef ERANGE
65#define ERANGE 34
66#endif
67
68#ifndef ETIMEDOUT
69#define ETIMEDOUT 110
70#endif
71
72#ifndef EINTR
73#define EINTR 4
74#endif
75
76#ifndef EBADF
77#define EBADF 9
78#endif
79
80#ifndef EAGAIN
81#define EAGAIN 11
82#endif
83
84#ifndef EWOULDBLOCK
85#define EWOULDBLOCK 11
86#endif
87
88#ifndef EPIPE
89#define EPIPE 32
90#endif
91
92#ifndef ECONNREFUSED
93#define ECONNREFUSED 111
94#endif
95
96#ifndef ENETUNREACH
97#define ENETUNREACH 101
98#endif
99
100#ifndef EHOSTUNREACH
101#define EHOSTUNREACH 113
102#endif
103
104#ifndef ECONNRESET
105#define ECONNRESET 104
106#endif
107
108#ifndef ENOTSOCK
109#define ENOTSOCK 88
110#endif
111
112// Declare errno variable for Windows CRT compatibility
113extern int errno;
114
int errno