Skip to content

Commit

Permalink
fix(windows): Define NOMINMAX only if not already set.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Nov 14, 2024
1 parent 4069a3b commit 368ed47
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ static AM_INLINE std::string am_wstring_narrow(const std::wstring& str)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif // WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX // No need of min and max macros
#endif // NOMINMAX
#include <Windows.h> // only needed for OutputDebugStringA, should be solved somehow.
#define AMPLITUDE_ASSERT(x) \
if (!(x)) \
Expand Down

0 comments on commit 368ed47

Please sign in to comment.