]> granicus.if.org Git - postgresql/commitdiff
Apparently icc doesn't always define __ICC, and it's more correct to
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Aug 2007 15:11:40 +0000 (15:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Aug 2007 15:11:40 +0000 (15:11 +0000)
check for __INTEL_COMPILER.  Per report from Dirk Tilger.
Not back-patched since I don't fully trust it yet ...

src/include/storage/s_lock.h

index 6735fdb77a00e51e251143a7012be67ce412412f..a9cbeacc188095658b5c0ade3388756e2c0ddd9c 100644 (file)
@@ -66,7 +66,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- *       $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.162 2007/07/16 14:02:22 tgl Exp $
+ *       $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.163 2007/08/05 15:11:40 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -78,7 +78,7 @@
 #ifdef HAVE_SPINLOCKS  /* skip spinlocks if requested */
 
 
-#if defined(__GNUC__) || defined(__ICC)
+#if defined(__GNUC__) || defined(__INTEL_COMPILER)
 /*************************************************************************
  * All the gcc inlines
  * Gcc consistently defines the CPU as __cpu__.