Skip to content

Commit

Permalink
Define NOMINMAX macro error prevention (#7)
Browse files Browse the repository at this point in the history
Including Windows.h can cause a lot of errors with min and max macros
  • Loading branch information
TriceHelix authored Aug 21, 2021
1 parent f427af7 commit d10aca7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fbow/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ THE SOFTWARE.
#else
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
# if _WIN32
#define NOMINMAX
#include <Windows.h>
#include <intrin.h>
# elif defined(__GNUC__) || defined(__clang__)
Expand Down

0 comments on commit d10aca7

Please sign in to comment.