Skip to content

Commit 3800c75

Browse files
committed
Database: repair the Windows build after #137
Without `NOMINMAX`, `max` is defined as a macro which will then collide with `std::max` from `<algorithm>`. This repairs the Windows build.
1 parent 1b68b14 commit 3800c75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Database/Database.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "llvm/Support/Path.h"
2525
#include "llvm/Support/raw_ostream.h"
2626
#if defined(_WIN32)
27+
#define NOMINMAX
2728
#include "Windows.h"
2829
#endif
2930

0 commit comments

Comments
 (0)