Skip to content

Commit 1f1ffec

Browse files
committed
Fix windows header inclusion
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 1f1ffec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)