From: Jan Dubois Date: Thu, 14 May 2009 16:55:15 +0000 (-0700) Subject: WIN32 preprocessor symbols is usually tested with #ifdef, not #if X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f66cd9441293fe8889cc565af7cf06351e97088;p=p5sagit%2Fp5-mst-13.2.git WIN32 preprocessor symbols is usually tested with #ifdef, not #if Doesn't really make a difference as WIN32 is defined as '1' when it is defined, but there is something to be said for consistent usage. --- diff --git a/pp_ctl.c b/pp_ctl.c index dc8f0da..e0c98ba 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -4935,7 +4935,7 @@ S_path_is_absolute(const char *name) PERL_ARGS_ASSERT_PATH_IS_ABSOLUTE; if (PERL_FILE_IS_ABSOLUTE(name) -#if WIN32 +#ifdef WIN32 || (*name == '.' && ((name[1] == '/' || (name[1] == '.' && name[2] == '/')) || (name[1] == '\\' ||