diff options
Diffstat (limited to 'patchlevel.h')
-rw-r--r-- | patchlevel.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/patchlevel.h b/patchlevel.h index b561f11ed5..2cfdec6b25 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -7,11 +7,6 @@ #define PERL_VERSION 5 /* epoch */ #define PERL_SUBVERSION 55 /* generation */ -/* these are the old terms of reference */ -#define PATCHLEVEL PERL_VERSION -#undef SUBVERSION /* OS/390 has a SUBVERSION in a system header */ -#define SUBVERSION PERL_SUBVERSION - /* local_patches -- list of locally applied less-than-subversion patches. If you're distributing such a patch, please give it a name and a @@ -58,3 +53,11 @@ static char *local_patches[] = { # define __PATCHLEVEL_H_INCLUDED__ #endif + +/* the old terms of reference, add them only when explicitly included */ +#if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(PATCHLEVEL) +#define PATCHLEVEL PERL_VERSION +#undef SUBVERSION /* OS/390 has a SUBVERSION in a system header */ +#define SUBVERSION PERL_SUBVERSION +#endif + |