[win32] silence warning about WIN32_LEAN_AND_MEAN redefinitions

This commit is contained in:
martinfouilleul 2023-06-16 20:06:02 +02:00
parent 6499bcd2a2
commit e93bf76adc
1 changed files with 2 additions and 0 deletions

View File

@ -14,7 +14,9 @@
#if PLATFORM_MACOS || PLATFORM_LINUX #if PLATFORM_MACOS || PLATFORM_LINUX
typedef int io_file_desc; typedef int io_file_desc;
#elif PLATFORM_WINDOWS #elif PLATFORM_WINDOWS
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#endif
#include<windows.h> #include<windows.h>
typedef HANDLE io_file_desc; typedef HANDLE io_file_desc;
#endif #endif