Browse Source

Add Windows specific pre-processor logic to Date class header

Patrick-Christopher Mattulat 2 năm trước cách đây
mục cha
commit
394e94df22
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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")
 {