#if !GLIB_CHECK_VERSION(2,6,0) // if Glib is too old to have wrappers, fall back to libc
#define g_freopen freopen
#define g_fopen fopen
#define g_rmdir rmdir
#define g_remove remove
#define g_unlink unlink
#define g_lstat lstat
#define g_stat stat
#define g_rename rename
#define g_open open
#endif

This could also use a wrapper for g_mkdir. In file-util.cc there are lines:

~
#if GLIB_CHECK_VERSION(2,6,0)
   retval = g_mkdir (path, mode);
#elif defined(G_OS_WIN32)
   retval = mkdir (path);
#else
   retval = mkdir (path, mode);
#endif
~

that could be replaced by a simple call of g_mkdir if the wrapper was in place.

So add #define g_mkdir mkdir to the quoted block.




_______________________________________________
Pan-users mailing list
Pan-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/pan-users

Reply via email to