Skip to content

Commit

Permalink
cpp: fix windows build
Browse files Browse the repository at this point in the history
also define NOMINMAX in convrt.hpp
  • Loading branch information
Totto16 committed Oct 14, 2024
1 parent fd63235 commit 9f35c00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cpp/convert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

#pragma once

#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif

#if defined(__GNUC__) & !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtemplate-id-cdtor"
Expand Down

0 comments on commit 9f35c00

Please sign in to comment.