This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1fc363
)
WIN32 preprocessor symbols is usually tested with #ifdef, not #if
author
Jan Dubois
<jand@activestate.com>
Thu, 14 May 2009 16:55:15 +0000
(09:55 -0700)
committer
Jan Dubois
<jand@activestate.com>
Thu, 14 May 2009 16:55:15 +0000
(09:55 -0700)
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.
pp_ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
dc8f0da
..
e0c98ba
100644
(file)
--- 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
+#if
def
WIN32
|| (*name == '.' && ((name[1] == '/' ||
(name[1] == '.' && name[2] == '/'))
|| (name[1] == '\\' ||