OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b5d911
)
[Qt][MinGW] common.cpp : More workaround.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Thu, 25 Feb 2016 17:24:16 +0000
(
02:24
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Thu, 25 Feb 2016 17:24:16 +0000
(
02:24
+0900)
source/src/common.cpp
patch
|
blob
|
history
diff --git
a/source/src/common.cpp
b/source/src/common.cpp
index
d8941c5
..
d8fe8e6
100644
(file)
--- a/
source/src/common.cpp
+++ b/
source/src/common.cpp
@@
-463,9
+463,15
@@
const _TCHAR *get_application_path()
mkdirat(AT_FDCWD, app_path, 0700); // Not found
}
#else // __WIN32
+# if defined(Q_OS_WIN)
+ if(stat(app_path, &st) != 0) {
+ mkdir(app_path); // Not found
+ }
+# else
if(stat(app_path, &st) != 0) {
_mkdir(app_path); // Not found
}
+# endif
#endif
}
#endif