Re: Dia ChangeLog report for Wed Apr 9 07:23:01 2003 (UTC)



On Thu, 10 Apr 2003 13:25:31 +1000 (EST), Michael Wybrow
<mjwybrow cs mu OZ AU> wrote:

On Wed, 9 Apr 2003, Dia ChangeLog Daemon wrote:

+   * lib/dia_dirs.h:
+   * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
+   that dirs are present.

The use of `mkdir()' for this function is not portable --  It's part of
glibc, but won't compile in MSVC.  Does anyone know if there is a MSVC
equivilent?

Not to pick a fight (really!) but it's pretty portable, if "portable"
means "available under practically anything that uses '/' to delimit
directories in a pathname".  

http://www.opengroup.org/onlinepubs/007908799/xsh/mkdir.html

Microsoft even has a flavor, albeit having but a single parameter:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__mkdir.2c_._wmkdir.asp

Perhaps the preprocessor could be used to eliminate the second argument?  

--jkl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]