Browse Source

Add Windows specific pre-processor logic to Date class header

Patrick-Christopher Mattulat 2 years ago
parent
commit
394e94df22
1 changed files with 3 additions and 1 deletions
  1. 3 1
      source/ls-std/time/Date.cpp

+ 3 - 1
source/ls-std/time/Date.cpp

@@ -9,7 +9,9 @@
 
 #include <iomanip>
 #include <ls-std/time/Date.hpp>
-#include <sstream>
+#ifdef _WIN32
+#include <sstream> // only MSVC needs this
+#endif
 
 ls::std::time::Date::Date() : ls::std::core::Class("Date")
 {