Skip to content

Commit

Permalink
Add NOMINMAX definition to prevent windows header from defining min a…
Browse files Browse the repository at this point in the history
…nd max macros
  • Loading branch information
daniele77 committed Apr 19, 2022
1 parent 59a94a8 commit da698ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/cli/detail/winkeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@

#include "inputdevice.h"

#if !defined(NOMINMAX)
#define NOMINMAX 1 // prevent windows from defining min and max macros
#endif // !defined(NOMINMAX)
#include <windows.h>

namespace cli
Expand Down

0 comments on commit da698ce

Please sign in to comment.