MLIB
Loading...
Searching...
No Matches
safe_winsock.h
1#pragma once
2/* inet_ntoa triggers some deprecation warnings. Disable them for now. */
3#ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
4#define _WINSOCK_DEPRECATED_NO_WARNINGS
5#endif
6
7#if defined(_MSC_VER) && !defined(_WINSOCK2API_)
8#ifdef _WINSOCKAPI_
9#error <winsock.h> has been included before <winsock2.h>
10#else
11#include <winsock2.h>
12#endif
13#endif