Fix warning regarding multi-line comment

sendfile
Martchus 4 years ago
parent 2347677495
commit d82e7bb869
  1. 6
      io/path.cpp

@ -112,8 +112,8 @@ bool settingsDirectory(std::string &result, std::string applicationDirectoryName
#if defined(PLATFORM_UNIX)
struct stat sb;
return (stat(result.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode));
#else // PLATFORM_WINDOWS \
// FIXME: use UTF-16 API to support unicode, or rewrite using fs abstraction lib
#elif defined(PLATFORM_WINDOWS)
// FIXME: use UTF-16 API to support unicode, or rewrite using fs abstraction lib
DWORD ftyp = GetFileAttributesA(result.c_str());
return (ftyp != INVALID_FILE_ATTRIBUTES) && (ftyp & FILE_ATTRIBUTE_DIRECTORY);
#endif
@ -144,7 +144,7 @@ bool settingsDirectory(std::string &result, std::string applicationDirectoryName
}
}
}
#else // PLATFORM_WINDOWS
#elif defined(PLATFORM_WINDOWS)
if (char *appData = getenv("appdata")) {
result = appData;
if (!applicationDirectoryName.empty()) {

Loading…
Cancel
Save