mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
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:
parent
147f34ab5f
commit
6a41432498
|
@ -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>
|
||||
|
||||
/******************************************************************************
|
||||
|
|
Loading…
Reference in a new issue