Define NOMINMAX before windows.h (#1715)

This commit is contained in:
Cheng 2024-12-18 11:51:24 +09:00 committed by GitHub
parent f110357aaa
commit c8fb54951a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,11 +7,11 @@
// Used by pread implementation.
#ifdef _WIN32
#include <windows.h>
#endif
#ifdef _MSC_VER
#define NOMINMAX
#endif
#include <windows.h>
#endif // _WIN32
#include "mlx/io/load.h"
#include "mlx/ops.h"