diff --git a/include/vkcv/Window.hpp b/include/vkcv/Window.hpp
index 7b7c33425cd69842d495fa94eb2a202fca0f3228..66ba1dcd6c34039e8aacdb8f3051d7378ce29c4d 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>