How do I deal with the max macro in windows.h colliding with max in std? February 2, 2023 by Tarik Define the macro NOMINMAX: This will suppress the min and max definitions in Windef.h.