Upgrade msvc port to winsock2 (#895)

* Add the changes needed to the MSVC windows port to get it to build with winsock2.h
* Rely upon the WIN32_LEAN_AND_MEAN define to include winsock2.h
This commit is contained in:
Soren Ptak 2023-11-28 15:16:16 -05:00 committed by GitHub
parent 147f34ab5f
commit 6a41432498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,15 @@
#ifndef PORTMACRO_H #ifndef PORTMACRO_H
#define PORTMACRO_H #define PORTMACRO_H
#ifdef WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#else
#include <winsock.h>
#endif
#include <windows.h> #include <windows.h>
#include <timeapi.h>
#include <mmsystem.h>
#include <winbase.h> #include <winbase.h>
/****************************************************************************** /******************************************************************************