summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-03 16:29:09 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-03 16:29:09 +0000
commit76a299c2e4bfe1ce199450451fd41a561b8b9151 (patch)
tree7327bf33fcf4419182548c6c0817cf89ea91520c
parent1f5d75e4be1ac49f74ef04bedd107583ed96a0fc (diff)
downloadperl-76a299c2e4bfe1ce199450451fd41a561b8b9151.tar.gz
The gcc attribute "deprecated" seems to have been available since gcc 3.1
So encode this knowledge in perl.h, so we don't rely on the version of gcc used by Configure to get the macro definition right. p4raw-id: //depot/perl@34995
-rw-r--r--perl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index de4021c664..d91392911b 100644
--- a/perl.h
+++ b/perl.h
@@ -2732,6 +2732,9 @@ typedef struct clone_params CLONE_PARAMS;
#ifndef PERL_MICRO
#if defined __GNUC__ && !defined(__INTEL_COMPILER)
+# if __GNUC__ == 3 && __GNUC_MINOR__ >= 1 || __GNUC__ > 3 /* 3.1 -> */
+# define HASATTRIBUTE_DEPRECATED
+# endif
# if __GNUC__ >= 3 /* 3.0 -> */ /* XXX Verify this version */
# define HASATTRIBUTE_FORMAT
# if defined __MINGW32__