OSDN Git Service

[Qt][MinGW] common.cpp : More workaround.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Thu, 25 Feb 2016 17:24:16 +0000 (02:24 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Thu, 25 Feb 2016 17:24:16 +0000 (02:24 +0900)
source/src/common.cpp

index d8941c5..d8fe8e6 100644 (file)
@@ -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