Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ add_library(freertos_kernel STATIC)
add_subdirectory(include)
add_subdirectory(portable)

target_sources(freertos_kernel PRIVATE
target_sources(freertos_kernel PUBLIC
croutine.c
event_groups.c
list.c
Expand Down
11 changes: 11 additions & 0 deletions portable/MSVC-MingW/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
#include "FreeRTOS.h"
#include "task.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>

#ifdef __GNUC__
#include "mmsystem.h"
#else
Expand Down
9 changes: 0 additions & 9 deletions portable/MSVC-MingW/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,7 @@
#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>

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