Przeglądaj źródła

Fixed File class

- added windows specific preprocessor directive to
"_addToFileListWindows" method
patrick 4 lat temu
rodzic
commit
b4f81041d9
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      source/io/File.cpp

+ 2 - 1
source/io/File.cpp

@@ -176,7 +176,7 @@ void ls_std::File::remove()
     }
   }
 }
-
+#ifdef _WIN32
 void ls_std::File::_addToFileListWindows(const std::string& _path, bool _withDirectories, WIN32_FIND_DATA _data, std::list<std::string>& _list)
 {
   const char separator = ls_std::FilePathSeparator::getOperatingSystemSpecificSeparator();
@@ -190,6 +190,7 @@ void ls_std::File::_addToFileListWindows(const std::string& _path, bool _withDir
     }
   }
 }
+#endif
 
 bool ls_std::File::_exists(const std::string& _path)
 {