Skip to content

Commit

Permalink
Upgrade msvc port to winsock2 (#895)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Skptak authored Nov 28, 2023
1 parent 147f34a commit 6a41432
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions portable/MSVC-MingW/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H

#ifdef WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#else
#include <winsock.h>
#endif

#include <windows.h>
#include <timeapi.h>
#include <mmsystem.h>
#include <winbase.h>

/******************************************************************************
Expand Down

0 comments on commit 6a41432

Please sign in to comment.