|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-08-15
|
|
|
- * Changed: 2020-08-16
|
|
|
+ * Changed: 2020-08-17
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -19,27 +19,24 @@ namespace ls_std {
|
|
|
FilePathSeparator() = default;
|
|
|
~FilePathSeparator() = default;
|
|
|
|
|
|
- static char getLinuxFilePathSeparator() {
|
|
|
- return '/';
|
|
|
- }
|
|
|
-
|
|
|
static char getOperatingSystemSpecificSeparator() {
|
|
|
char separator;
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
- separator = ls_std::FilePathSeparator::getUnixFilePathSeparator();
|
|
|
- #endif
|
|
|
- #ifdef unix
|
|
|
- separator = ls_std::FilePathSeparator::getLinuxFilePathSeparator();
|
|
|
+ separator = ls_std::FilePathSeparator::getWindowsFilePathSeparator();
|
|
|
#endif
|
|
|
- #ifdef __APPLE__
|
|
|
- separator = ls_std::FilePathSeparator::getLinuxFilePathSeparator();
|
|
|
+ #if defined(unix) || defined(__APPLE__)
|
|
|
+ separator = ls_std::FilePathSeparator::getUnixFilePathSeparator();
|
|
|
#endif
|
|
|
|
|
|
return separator;
|
|
|
}
|
|
|
|
|
|
static char getUnixFilePathSeparator() {
|
|
|
+ return '/';
|
|
|
+ }
|
|
|
+
|
|
|
+ static char getWindowsFilePathSeparator() {
|
|
|
return '\\';
|
|
|
}
|
|
|
};
|