projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
485f531
)
Allow a macro of "0" to mean "#if 0" for convenient elimination of
author
Nicholas Clark
<nick@ccl4.org>
Mon, 1 May 2006 17:28:43 +0000
(17:28 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Mon, 1 May 2006 17:28:43 +0000
(17:28 +0000)
constants.
p4raw-id: //depot/perl@28038
lib/ExtUtils/Constant/Base.pm
patch
|
blob
|
history
diff --git
a/lib/ExtUtils/Constant/Base.pm
b/lib/ExtUtils/Constant/Base.pm
index 8dab240d2325b247e9987162ed7a46a47cda78e8..48e0c37691f588aa2ceb4f65a42913dc70456b9e 100644
(file)
--- a/
lib/ExtUtils/Constant/Base.pm
+++ b/
lib/ExtUtils/Constant/Base.pm
@@
-5,7
+5,7
@@
use vars qw($VERSION $is_perl56);
use Carp;
use Text::Wrap;
use ExtUtils::Constant::Utils qw(C_stringify perl_stringify);
-$VERSION = '0.0
2
';
+$VERSION = '0.0
3
';
$is_perl56 = ($] < 5.007 && $] > 5.005_50);
@@
-78,7
+78,7
@@
sub macro_to_ifdef {
return $macro->[0];
}
if (defined $macro && $macro ne "" && $macro ne "1") {
- return
"#ifdef $macro
\n";
+ return
$macro ? "#ifdef $macro\n" : "#if 0
\n";
}
return "";
}