Browse Source

Add missing Windows dependencies

Patrick-Christopher Mattulat 2 years ago
parent
commit
2fe8b22f31
2 changed files with 4 additions and 4 deletions
  1. 1 0
      source/ls-std/time/Date.cpp
  2. 3 4
      test/TestHelper.hpp

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

@@ -9,6 +9,7 @@
 
 #include <iomanip>
 #include <ls-std/time/Date.hpp>
+#include <sstream>
 
 ls::std::time::Date::Date() : ls::std::core::Class("Date")
 {

+ 3 - 4
test/TestHelper.hpp

@@ -22,6 +22,9 @@
 #include <unistd.h>
 #endif
 #include <vector>
+#ifdef _WIN32
+#include <windows.h>
+#endif
 
 namespace ls_std_test
 {
@@ -138,7 +141,6 @@ namespace ls_std_test
       }
 
       #if defined(unix) || defined(__APPLE__)
-
       static ::std::string _getWorkingDirectoryUnix()
       {
         ::std::string workingDirectory{};
@@ -155,11 +157,9 @@ namespace ls_std_test
 
         return workingDirectory;
       }
-
       #endif
 
       #ifdef _WIN32
-
       static ::std::string _getWorkingDirectoryWindows()
       {
         ::std::string workingDirectory{};
@@ -176,7 +176,6 @@ namespace ls_std_test
 
         return workingDirectory;
       }
-
       #endif
 
       static ::std::string _normalizePath(::std::string _path)