summaryrefslogtreecommitdiff
path: root/patchlevel.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-02-16 21:16:21 +0000
committerNicholas Clark <nick@ccl4.org>2009-02-16 21:17:55 +0000
commite8e3635e321a3d3ac3b355d31c5d04e1a479615f (patch)
treef471ad7e1f95487127bfab4307c57d7eb55b76e6 /patchlevel.h
parenteb3b8c7b72e00b81a8275631f24b2ce779cfa8f0 (diff)
downloadperl-e8e3635e321a3d3ac3b355d31c5d04e1a479615f.tar.gz
Replace *printf "%d.%d.%d", PERL_REVISION, PERL_VERSION, PERL_SUBVERSION
with PERL_VERSION_STRING, which can be determined at compile time, as a constant string.
Diffstat (limited to 'patchlevel.h')
-rw-r--r--patchlevel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/patchlevel.h b/patchlevel.h
index 885643f34f..207c49207c 100644
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -17,6 +17,10 @@
#define PERL_VERSION 11 /* epoch */
#define PERL_SUBVERSION 0 /* generation */
+#define PERL_VERSION_STRING STRINGIFY(PERL_REVISION) "." \
+ STRINGIFY(PERL_VERSION) "." \
+ STRINGIFY(PERL_SUBVERSION)
+
/* The following numbers describe the earliest compatible version of
Perl ("compatibility" here being defined as sufficient binary/API
compatibility to run XS code built with the older version).