Change 34995 by [EMAIL PROTECTED] on 2008/12/03 16:29:09

        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.

Affected files ...

... //depot/perl/perl.h#850 edit

Differences ...

==== //depot/perl/perl.h#850 (text) ====
Index: perl/perl.h
--- perl/perl.h#849~34994~      2008-12-03 06:55:52.000000000 -0800
+++ perl/perl.h 2008-12-03 08:29:09.000000000 -0800
@@ -2732,6 +2732,9 @@
 
 #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__
End of Patch.

Reply via email to