Fix warning regarding multi-line comment
This commit is contained in:
parent
2347677495
commit
d82e7bb869
|
@ -112,8 +112,8 @@ bool settingsDirectory(std::string &result, std::string applicationDirectoryName
|
||||||
#if defined(PLATFORM_UNIX)
|
#if defined(PLATFORM_UNIX)
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
return (stat(result.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode));
|
return (stat(result.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode));
|
||||||
#else // PLATFORM_WINDOWS \
|
#elif defined(PLATFORM_WINDOWS)
|
||||||
// FIXME: use UTF-16 API to support unicode, or rewrite using fs abstraction lib
|
// FIXME: use UTF-16 API to support unicode, or rewrite using fs abstraction lib
|
||||||
DWORD ftyp = GetFileAttributesA(result.c_str());
|
DWORD ftyp = GetFileAttributesA(result.c_str());
|
||||||
return (ftyp != INVALID_FILE_ATTRIBUTES) && (ftyp & FILE_ATTRIBUTE_DIRECTORY);
|
return (ftyp != INVALID_FILE_ATTRIBUTES) && (ftyp & FILE_ATTRIBUTE_DIRECTORY);
|
||||||
#endif
|
#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")) {
|
if (char *appData = getenv("appdata")) {
|
||||||
result = appData;
|
result = appData;
|
||||||
if (!applicationDirectoryName.empty()) {
|
if (!applicationDirectoryName.empty()) {
|
||||||
|
|
Loading…
Reference in New Issue