mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
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 ...
This commit is contained in:
parent
8d30337566
commit
c8b7e811f3
@ -66,7 +66,7 @@
|
|||||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* 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 */
|
#ifdef HAVE_SPINLOCKS /* skip spinlocks if requested */
|
||||||
|
|
||||||
|
|
||||||
#if defined(__GNUC__) || defined(__ICC)
|
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* All the gcc inlines
|
* All the gcc inlines
|
||||||
* Gcc consistently defines the CPU as __cpu__.
|
* Gcc consistently defines the CPU as __cpu__.
|
||||||
|
Loading…
Reference in New Issue
Block a user