From 1bc2d544b979164a276f9e6052f0b6d23af59b60 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 15 Mar 2004 03:29:22 +0000 Subject: Localize our dependencies on the way to create NAN or INFINITY. Per recent proposal to pghackers. --- src/include/port/solaris.h | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/include/port/solaris.h') diff --git a/src/include/port/solaris.h b/src/include/port/solaris.h index 8476fe362c8..f37e2a2a88b 100644 --- a/src/include/port/solaris.h +++ b/src/include/port/solaris.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.10 2003/12/23 03:31:30 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.11 2004/03/15 03:29:22 tgl Exp $ */ /* * Sort this out for all operating systems some time. The __xxx @@ -35,24 +35,3 @@ #define BYTE_ORDER LITTLE_ENDIAN #endif #endif - - -#ifndef NAN - -#if defined(__GNUC__) && defined(__i386__) - -#ifndef __nan_bytes -#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } -#endif - -#define NAN \ - (__extension__ ((union { unsigned char __c[8]; double __d; }) \ - { __nan_bytes }).__d) - -#else -/* not GNUC and i386 */ - -#define NAN (0.0/0.0) -#endif /* GCC. */ - -#endif /* not NAN */ -- cgit v1.2.3