use g_mkdir()

we had our own compat stuff, use the g_() one instead
This commit is contained in:
John Cupitt 2013-10-28 21:21:19 +00:00
parent 3dce5951c2
commit ebae3f7ed3
2 changed files with 1 additions and 19 deletions

View File

@ -306,7 +306,6 @@ AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_MKDIR
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([getcwd gettimeofday getwd memset munmap putenv realpath strcasecmp strchr strcspn strdup strerror strrchr strspn vsnprintf realpath mkstemp mktemp random rand sysconf atexit])
AC_CHECK_LIB(m,cbrt,[AC_DEFINE(HAVE_CBRT,1,[have cbrt() in libm.])])

View File

@ -1185,23 +1185,6 @@ vips_popenf( const char *fmt, const char *mode, ... )
return( fp );
}
/* Handle broken mkdirs()
*/
#if HAVE_MKDIR
# if MKDIR_TAKES_ONE_ARG
/* Mingw32 */
# define mkdir(a,b) mkdir(a)
# endif
#else
# ifdef HAVE__MKDIR
/* plain Win32 */
# include <direct.h>
# define mkdir(a,b) _mkdir(a)
# else
# error "Don't know how to create a directory on this system."
# endif
#endif
/* Make a directory.
*/
int
@ -1216,7 +1199,7 @@ vips_mkdirf( const char *name, ... )
/* Try that.
*/
if( mkdir( buf1, 0755 ) ) {
if( g_mkdir( buf1, 0755 ) ) {
vips_error( "mkdirf",
_( "unable to create directory \"%s\", %s" ),
buf1, strerror( errno ) );