-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Move windows headers to port.c #1302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move windows headers to port.c #1302
Conversation
I have removed some of the overly complicated task selection code. It would be good if someone knowledgeable could review it. |
This prevents the inclusion of windows.h. into all header files using FreeRTOS.h and thus defining several macros conflicting with common definitions.
90edd94
to
66749ac
Compare
Would you please share the conflicting definitions? |
In my case, |
Is it not possible to change the name of this enum? |
No. In addition I'd argue that it's bad practice to force the user to know all the ways |
If you want to run your application on Windows, using a name that is used by Windows OS can lead to potential conflicts. For example, what if a future Windows update moves this define to I assume that you have constraints preventing you from renaming the enum, but I would recommended renaming it for robustness. |
I'm not using anything from the Windows API so I was suprised that FreeRTOS was publicly including it. The windows build is for unit testing of an embedded firmware. I try to keep that standard C compliant as possible. |
66749ac
to
7381ffd
Compare
|
Move windows header files to port.c
Description
This prevents the inclusion of windows.h. into all header files using FreeRTOS.h and thus defining several macros conflicting with common definitions. This is a more minimal fix compared to #1282
Test Steps
None, just a build issue.
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.