mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-03 07:39:02 +01:00
Win32: Guard timeapi.h include for MinGW compatibility (#1345)
* bugfix/mingw-timeapi * fix: clean up Windows timer includes - Removed legacy GCC-specific include block. - Added compiler-specific headers: - MSVC (_MSC_VER): includes <timeapi.h> and links winmm.lib - Other compilers: includes <mmsystem.h> - Ensures cross-compiler compatibility and avoids duplicate headers. --------- Co-authored-by: Metehan Öztürk <mete_pukkada@outlook.com> Co-authored-by: Monika Singh <moninom@amazon.com>
This commit is contained in:
parent
536914b2a4
commit
a9cb459206
@ -39,12 +39,11 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <timeapi.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include "mmsystem.h"
|
||||
#else
|
||||
#pragma comment(lib, "winmm.lib")
|
||||
#else
|
||||
#include <mmsystem.h>
|
||||
#endif
|
||||
|
||||
#define portMAX_INTERRUPTS ( ( uint32_t ) sizeof( uint32_t ) * 8UL ) /* The number of bits in an uint32_t. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user