From 92423ec86115b755c2d7e8d8b35a9b3c5d6eceea Mon Sep 17 00:00:00 2001
From: Tobias Frisch <tfrisch@uni-koblenz.de>
Date: Wed, 6 Oct 2021 14:16:04 +0200
Subject: [PATCH] [#96] Guarded potential re-definition of nominmax

Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de>
---
 include/vkcv/Window.hpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/vkcv/Window.hpp b/include/vkcv/Window.hpp
index 7b7c3342..66ba1dcd 100644
--- a/include/vkcv/Window.hpp
+++ b/include/vkcv/Window.hpp
@@ -5,7 +5,10 @@
  * @brief Class to represent and manage a window with its input.
  */
 
-#define NOMINMAX
+#ifndef NOMINMAX
+#define NOMINMAX 1
+#endif
+
 #include <algorithm>
 #include <string>
 
-- 
GitLab