Skip to content

Commit 9f35c00

Browse files
committed
cpp: fix windows build
also define NOMINMAX in convrt.hpp
1 parent fd63235 commit 9f35c00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cpp/convert.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
#pragma once
44

5+
#ifdef _WIN32
6+
#ifndef NOMINMAX
7+
#define NOMINMAX
8+
#endif
9+
#endif
10+
511
#if defined(__GNUC__) & !defined(__clang__)
612
#pragma GCC diagnostic push
713
#pragma GCC diagnostic ignored "-Wtemplate-id-cdtor"

0 commit comments

Comments
 (0)