File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
contrib/win32/win32compat Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ static int sfd_map_init = 0;
55
55
static int sfd_count = 0 ;
56
56
int sfd_start = 0 ;
57
57
58
-
58
+ #ifndef __MINGW32__
59
59
void myInvalidParameterHandler (const wchar_t * expression ,
60
60
const wchar_t * function ,
61
61
const wchar_t * file ,
@@ -64,6 +64,7 @@ void myInvalidParameterHandler(const wchar_t* expression,
64
64
{
65
65
return ;
66
66
}
67
+ #endif
67
68
68
69
69
70
/*
@@ -151,14 +152,17 @@ int allocate_sfd(int fd_or_handle)
151
152
else
152
153
#endif
153
154
154
-
155
+ #ifndef __MINGW32__
155
156
_invalid_parameter_handler oldHandler , newHandler ;
156
157
newHandler = myInvalidParameterHandler ;
157
158
oldHandler = _set_invalid_parameter_handler (newHandler );
159
+ #endif
158
160
159
161
160
162
real_handle = (HANDLE )_get_osfhandle (fd_or_handle );
163
+ #ifndef __MINGW32__
161
164
_set_invalid_parameter_handler (oldHandler );
165
+ #endif
162
166
163
167
if (real_handle == INVALID_HANDLE_VALUE )
164
168
{
You can’t perform that action at this time.
0 commit comments