summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-03 13:51:36 +0100
committerH.Merijn Brand <h.m.brand@xs4all.nl>2008-12-03 14:55:52 +0000
commitfcdf39cfa40f83fdbf75ada879210410f127eef1 (patch)
treea5c1c9a2bd4338d7bd11cb05bc71ed2f23d46ac8 /perl.h
parent302c0c93356e52f02a8925ac90ae96bf8db31000 (diff)
downloadperl-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index e9c361160d..de4021c664 100644
--- a/perl.h
+++ b/perl.h
@@ -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