You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-05 15:55:58 +03:00
C preprocessor defines fix
This commit is contained in:
@@ -40,10 +40,10 @@
|
||||
Windows does not support MSG_DONTWAIT for send()/recv(). So we need to ensure
|
||||
that the socket is non-blocking at the start of every operation.
|
||||
*/
|
||||
#define WIN_SET_NONBLOCKING(mysql) { \
|
||||
#define WIN_SET_NONBLOCKING(mysql) do { \
|
||||
my_bool old_mode; \
|
||||
if ((mysql)->net.pvio) ma_pvio_blocking((mysql)->net.pvio, FALSE, &old_mode); \
|
||||
}
|
||||
} while(0)
|
||||
#else
|
||||
#define WIN_SET_NONBLOCKING(mysql)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user