diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-12-03 13:51:36 +0100 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2008-12-03 14:55:52 +0000 |
commit | fcdf39cfa40f83fdbf75ada879210410f127eef1 (patch) | |
tree | a5c1c9a2bd4338d7bd11cb05bc71ed2f23d46ac8 /perl.h | |
parent | 302c0c93356e52f02a8925ac90ae96bf8db31000 (diff) | |
download | perl-fcdf39cfa40f83fdbf75ada879210410f127eef1.tar.gz |
Configure detection of __attribute__((deprecated))
From: "Rafael Garcia-Suarez" <rgarciasuarez@gmail.com>
Message-ID: <b77c1dce0812030351j33d7b75ci3e2640b33f36acd9@mail.gmail.com>
p4raw-id: //depot/perl@34994
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3150,6 +3150,9 @@ typedef pthread_key_t perl_key; # endif #endif +#ifdef HASATTRIBUTE_DEPRECATED +# define __attribute__deprecated__ __attribute__((deprecated)) +#endif #ifdef HASATTRIBUTE_FORMAT # define __attribute__format__(x,y,z) __attribute__((format(x,y,z))) #endif @@ -3173,6 +3176,9 @@ typedef pthread_key_t perl_key; #endif /* If we haven't defined the attributes yet, define them to blank. */ +#ifndef __attribute__deprecated__ +# define __attribute__deprecated__ +#endif #ifndef __attribute__format__ # define __attribute__format__(x,y,z) #endif |