diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-10 11:05:13 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-10 11:05:13 +0000 |
commit | e3321bb0a51658948df39ab78e5b59a5eb3da71c (patch) | |
tree | ff4ebf02573dd89994710dd89f927f8abd9e5560 /patchlevel.h | |
parent | 1a505819a5b4ef1e8de31ef21c6ca7dafa3503dc (diff) | |
download | perl-e3321bb0a51658948df39ab78e5b59a5eb3da71c.tar.gz |
avoid leaking static local_patches unless patchlevel.h is
explicitly included
p4raw-id: //depot/perl@4119
Diffstat (limited to 'patchlevel.h')
-rw-r--r-- | patchlevel.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/patchlevel.h b/patchlevel.h index 5b07ae698f..02a968910e 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -7,6 +7,9 @@ #define PERL_VERSION 5 /* epoch */ #define PERL_SUBVERSION 61 /* generation */ +#define __PATCHLEVEL_H_INCLUDED__ +#endif + /* local_patches -- list of locally applied less-than-subversion patches. If you're distributing such a patch, please give it a name and a @@ -42,6 +45,7 @@ This will prevent patch from choking if someone has previously applied different patches than you. */ +#if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(LOCAL_PATCH_COUNT) static char *local_patches[] = { NULL ,NULL @@ -51,13 +55,8 @@ static char *local_patches[] = { # define LOCAL_PATCH_COUNT \ (sizeof(local_patches)/sizeof(local_patches[0])-2) -# 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 - |