Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Improve namespace test macros a bit.



details:   https://anonhg.NetBSD.org/src/rev/3dc1754cb682
branches:  trunk
changeset: 481754:3dc1754cb682
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat Feb 05 14:04:36 2000 +0000

description:
Improve namespace test macros a bit.

diffstat:

 sys/arch/alpha/include/math.h   |  7 ++++---
 sys/arch/arm32/include/math.h   |  7 ++++---
 sys/arch/i386/include/math.h    |  7 ++++---
 sys/arch/m68k/include/math.h    |  7 ++++---
 sys/arch/mips/include/math.h    |  7 ++++---
 sys/arch/powerpc/include/math.h |  7 ++++---
 sys/arch/sh3/include/math.h     |  7 ++++---
 sys/arch/sparc/include/math.h   |  7 ++++---
 sys/arch/sparc64/include/math.h |  7 ++++---
 9 files changed, 36 insertions(+), 27 deletions(-)

diffs (162 lines):

diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/alpha/include/math.h
--- a/sys/arch/alpha/include/math.h     Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/alpha/include/math.h     Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:07 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:36 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/arm32/include/math.h
--- a/sys/arch/arm32/include/math.h     Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/arm32/include/math.h     Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:09 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:37 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/i386/include/math.h
--- a/sys/arch/i386/include/math.h      Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/i386/include/math.h      Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:11 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:37 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/m68k/include/math.h
--- a/sys/arch/m68k/include/math.h      Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/m68k/include/math.h      Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:12 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:38 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/mips/include/math.h
--- a/sys/arch/mips/include/math.h      Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/mips/include/math.h      Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:13 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:39 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/powerpc/include/math.h
--- a/sys/arch/powerpc/include/math.h   Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/powerpc/include/math.h   Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:14 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:40 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/sh3/include/math.h
--- a/sys/arch/sh3/include/math.h       Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/sh3/include/math.h       Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.1 2000/01/17 16:27:53 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.2 2000/02/05 14:04:40 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/sparc/include/math.h
--- a/sys/arch/sparc/include/math.h     Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/sparc/include/math.h     Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:15 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:41 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif
diff -r 2ad01069904d -r 3dc1754cb682 sys/arch/sparc64/include/math.h
--- a/sys/arch/sparc64/include/math.h   Sat Feb 05 12:32:57 2000 +0000
+++ b/sys/arch/sparc64/include/math.h   Sat Feb 05 14:04:36 2000 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: math.h,v 1.2 2000/01/04 14:20:15 kleink Exp $  */
+/*     $NetBSD: math.h,v 1.3 2000/02/05 14:04:41 kleink Exp $  */
 
 /*
  * ISO C99
  */
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
-    !defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(_ANSI_SOURCE) && \
+    (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
+     defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
 extern __const char    __nanf[];
 #define        NAN             (*(__const float *)(__const void *)__nanf)
 #endif



Home | Main Index | Thread Index | Old Index