Browse Source

Fix includes for MSVC compiler

Patrick-Christopher 2 years ago
parent
commit
840a5fef9c
3 changed files with 9 additions and 3 deletions
  1. 2 1
      include/ls_std/boxing/Boolean.hpp
  2. 4 1
      source/ls_std/io/logging/Logger.cpp
  3. 3 1
      test/TestHelper.hpp

+ 2 - 1
include/ls_std/boxing/Boolean.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2022-05-19
+ * Changed:         2022-05-21
  *
  * */
 
@@ -11,6 +11,7 @@
 #define LS_STD_BOOLEAN_HPP
 
 #include <memory>
+#include <sstream>
 #include <ls_std/core/Class.hpp>
 #include <ls_std/core/interface/IBoxing.hpp>
 

+ 4 - 1
source/ls_std/io/logging/Logger.cpp

@@ -3,13 +3,16 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2022-05-20
+ * Changed:         2022-05-21
  *
  * */
 
 #include <ls_std/io/logging/Logger.hpp>
 #include <ctime>
 #include <iomanip>
+#ifdef _MSC_VER
+#include <sstream>
+#endif
 #include <ls_std/io/NewLine.hpp>
 #include <ls_std/core/exception/IllegalArgumentException.hpp>
 

+ 3 - 1
test/TestHelper.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2022-05-19
+ * Changed:         2022-05-21
  *
  * */
 
@@ -16,7 +16,9 @@
 #include <algorithm>
 #include <sstream>
 #include <climits>
+#if defined(unix) || defined(__APPLE__)
 #include <unistd.h>
+#endif
 #include <fstream>
 
 namespace ls_std_test