Skip to content

Commit c8b7e81

Browse files
committed
Apparently icc doesn't always define __ICC, and it's more correct to
check for __INTEL_COMPILER. Per report from Dirk Tilger. Not back-patched since I don't fully trust it yet ...
1 parent 8d30337 commit c8b7e81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/storage/s_lock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
6767
* Portions Copyright (c) 1994, Regents of the University of California
6868
*
69-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.162 2007/07/16 14:02:22 tgl Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.163 2007/08/05 15:11:40 tgl Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -78,7 +78,7 @@
7878
#ifdef HAVE_SPINLOCKS /* skip spinlocks if requested */
7979

8080

81-
#if defined(__GNUC__) || defined(__ICC)
81+
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
8282
/*************************************************************************
8383
* All the gcc inlines
8484
* Gcc consistently defines the CPU as __cpu__.

0 commit comments

Comments
 (0)