mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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:
parent
812097cc3d
commit
9a2be684a2
8
ThirdParty/Ert/lib/util/util.c
vendored
8
ThirdParty/Ert/lib/util/util.c
vendored
@ -4620,13 +4620,11 @@ bool util_is_abs_path(const char * path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int util_mkdir( const char * path ) {
|
static int util_mkdir( const char * path ) {
|
||||||
#ifdef HAVE_POSIX_MKDIR
|
#if defined(HAVE_WINDOWS_MKDIR)
|
||||||
|
return _mkdir(path);
|
||||||
|
#elif defined(HAVE_POSIX_MKDIR)
|
||||||
return mkdir( path , UTIL_DEFAULT_MKDIR_MODE );
|
return mkdir( path , UTIL_DEFAULT_MKDIR_MODE );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINDOWS_MKDIR
|
|
||||||
return _mkdir( path );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user