Skip to content

Commit af6b379

Browse files
authored
Fix windows header inclusion (#1324)
WIN32_LEAN_AND_MEAN strips many header inclusions from windows.h to speed up build times. It appears to strip windef.h which is needed for FALSE/TRUE.
1 parent ac9414d commit af6b379

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/portable/NetworkInterface/libslirp/MBuffNetworkInterface.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
#if defined( _WIN32 )
3131
#include <windows.h>
32+
/* Required when compiling with WIN32_LEAN_AND_MEAN as it strips this header which defines TRUE/FALSE */
33+
#include <windef.h>
3234
#endif
3335

3436
/* FreeRTOS includes. */

0 commit comments

Comments
 (0)