Intel C Compiler 9.0 hatefully defines __GNUC__. Unfortunately,
authorSteve Peters <steve@fisharerojo.org>
Tue, 31 Jan 2006 18:42:31 +0000 (18:42 +0000)
committerSteve Peters <steve@fisharerojo.org>
Tue, 31 Jan 2006 18:42:31 +0000 (18:42 +0000)
icc does not support gcc built-ins like __attribiute__.

p4raw-id: //depot/perl@27027

perl.h

diff --git a/perl.h b/perl.h
index f4d20f8..04b070f 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -2500,7 +2500,7 @@ typedef struct clone_params CLONE_PARAMS;
  * have HASATTRIBUTE_FORMAT).
  */
 
-#if defined __GNUC__
+#if defined __GNUC__ && !defined(__INTEL_COMPILER)
 #  if __GNUC__ >= 3 /* 3.0 -> */ /* XXX Verify this version */
 #    define HASATTRIBUTE_FORMAT
 #  endif