mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 09:00:14 -06:00
Fix building when you have both WINDOWS and POSIX mkdir detected. (#11523)
* Fix building when you have both WINDOWS and POSIX mkdir detected.
This commit is contained in:
1 parent
812097cc3d
commit
9a2be684a2
1 file changed
+4
-6
Vendored
+4
-6
@@ -4620,12 +4620,10 @@ bool util_is_abs_path(const char * path) {
|
||||
}
|
||||
|
||||
static int util_mkdir( const char * path ) {
|
||||
#ifdef HAVE_POSIX_MKDIR
|
||||
return mkdir( path , UTIL_DEFAULT_MKDIR_MODE );
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WINDOWS_MKDIR
|
||||
return _mkdir( path );
|
||||
#if defined(HAVE_WINDOWS_MKDIR)
|
||||
return _mkdir(path);
|
||||
#elif defined(HAVE_POSIX_MKDIR)
|
||||
return mkdir( path , UTIL_DEFAULT_MKDIR_MODE );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user