FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.51k stars 1.05k forks source link

Add missing Extern "C" to MSVC portmacro.h #1075

Closed CrustyAuklet closed 1 month ago

CrustyAuklet commented 1 month ago

Add missing Extern "C" to MSVC portmacro.h as a fix for issue #1064

Description

It appears that in merge request https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/1047 The C++ block was reduced to not include the transitive header includes. This makes sense but revealed the lack of the extern "C" guard in the MSVC-MingW/portmacro.h header.

Test Steps

compile a project for the MSVC-MingW simulator and there will be undefined references.

Checklist:

Related Issue

introduced in https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/1047

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud