summaryrefslogtreecommitdiff
path: root/src/include/port/solaris.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-03-15 03:29:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-03-15 03:29:22 +0000
commit1bc2d544b979164a276f9e6052f0b6d23af59b60 (patch)
tree5373cea0da5a2587783dd5b805c90427143c7555 /src/include/port/solaris.h
parent89ab5c4abf48de8156b9284dda869f9ea2b2ad44 (diff)
Localize our dependencies on the way to create NAN or INFINITY.
Per recent proposal to pghackers.
Diffstat (limited to 'src/include/port/solaris.h')
-rw-r--r--src/include/port/solaris.h23
1 files changed, 1 insertions, 22 deletions
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 */