Skip to content

Commit cbd783d

Browse files
author
dalmurii
committed
Changes to be committed:
modified: src/sock/WIN.def.c
1 parent 862f250 commit cbd783d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎src/sock/WIN.def.c‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef ae2f_Sys_sock_WIN_auto_h
22
#define ae2f_Sys_sock_WIN_auto_h
33

4+
#include "ae2f/Sys/Sock.h"
45
#include <ae2f/Sys.h>
56

67
#if ae2f_Sys_WIN(!)0
@@ -21,8 +22,12 @@ ae2f_MAC() ae2fsys_set_sock_blkmode_imp(
2122
enum AE2FSYS_SOCK_ res
2223
)
2324
{
24-
(rdwr_mem) = !!(c_blkmode);
25-
(res) = -(!!ioctlsocket((h_sock), FIONBIO, &(rdwr_mem)));
25+
(rdwr_mem) = ae2f_reinterpret_cast(ae2fsys_sock_blkmode_t, !!(c_blkmode));
26+
(res) = ae2f_reinterpret_cast(enum AE2FSYS_SOCK_, -(!!ioctlsocket(
27+
(h_sock)
28+
, FIONBIO
29+
, &(rdwr_mem)))
30+
);
2631
}
2732

2833
#else

0 commit comments

Comments
 (0)