mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 16:40:18 +00:00
control_socket: suppress Windows warning
winsock2.h (include from utils/net.h) should be included prior to windows.h, otherwise windows.h includes winsock.h (version 1), that is incompatible. WIN32_LEAN_AND_MEAN causes some headers not being included with windows.h (including winsock.h).
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <cstdlib> // for atoi, free, malloc, abort, strtoll
|
||||
#include <cstring> // for strlen, NULL, strncpy, strchr, strcmp
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <fcntl.h> // for fcntl, F_SETFL, O_NONBLOCK
|
||||
|
||||
Reference in New Issue
Block a user