ruby-changes:6723
From: usa <ko1@a...>
Date: Mon, 28 Jul 2008 16:09:41 +0900 (JST)
Subject: [ruby-changes:6723] Ruby:r18239 (trunk): * win32/win32.c (MAXPATHLEN): define before use.
usa 2008-07-28 16:07:12 +0900 (Mon, 28 Jul 2008) New Revision: 18239 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18239 Log: * win32/win32.c (MAXPATHLEN): define before use. Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18238) +++ ChangeLog (revision 18239) @@ -1,3 +1,7 @@ +Mon Jul 28 16:06:36 2008 NAKAMURA Usaku <usa@r...> + + * win32/win32.c (MAXPATHLEN): define before use. + Mon Jul 28 16:01:12 2008 NAKAMURA Usaku <usa@r...> * thread_win32.[ch]: moved definitions of cond_every_entry and Index: win32/win32.c =================================================================== --- win32/win32.c (revision 18238) +++ win32/win32.c (revision 18239) @@ -916,6 +916,12 @@ return rb_w32_spawn(mode, rb_w32_join_argv(cmd, argv), prog); } +#ifdef HAVE_SYS_PARAM_H +# include <sys/param.h> +#else +# define MAXPATHLEN 512 +#endif + static struct ChildRecord * CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa, HANDLE hInput, HANDLE hOutput, HANDLE hError) @@ -1107,13 +1113,7 @@ return 0; } -#ifdef HAVE_SYS_PARAM_H -# include <sys/param.h> -#else -# define MAXPATHLEN 512 -#endif - static NtCmdLineElement ** cmdglob(NtCmdLineElement *patt, NtCmdLineElement **tail) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/