Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/common lint: reduce number of negations in pre...



details:   https://anonhg.NetBSD.org/src/rev/c78eb55d8477
branches:  trunk
changeset: 1022723:c78eb55d8477
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Aug 03 17:27:48 2021 +0000

description:
lint: reduce number of negations in preprocessor condition

No functional change.

diffstat:

 usr.bin/xlint/common/param.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a141ed5d0fcf -r c78eb55d8477 usr.bin/xlint/common/param.h
--- a/usr.bin/xlint/common/param.h      Tue Aug 03 17:20:02 2021 +0000
+++ b/usr.bin/xlint/common/param.h      Tue Aug 03 17:27:48 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.8 2020/12/30 11:43:13 rillig Exp $ */
+/*     $NetBSD: param.h,v 1.9 2021/08/03 17:27:48 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -63,7 +63,7 @@
 /*
  * The sparc64 long double code generation is broken in old gcc.
  */
-#if !defined(__sparc64__) || !defined(__GNUC__) || __GNUC__ > 2
+#if !(defined(__sparc64__) && defined(__GNUC__) && __GNUC__ <= 2)
 typedef        long double ldbl_t;
 #else
 typedef        double  ldbl_t;



Home | Main Index | Thread Index | Old Index