summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbjh21 <bjh21@NetBSD.org>2006-12-09 19:33:42 +0000
committerbjh21 <bjh21@NetBSD.org>2006-12-09 19:33:42 +0000
commit2f3712dfa1c1fec5fa597b1fc06694c2998db092 (patch)
treec1cba6608624b572346453608a4284bb52a86bd2 /include
parent0aaca355b2c536709e470a960752e73ae7e37365 (diff)
defined(_NETBSD_SOURCE) is equivalent to (!defined(_ANSI_SOURCE) &&
!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)), so there's no need to check both of them.
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h
index da7a51add8e..680e5dc7626 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stdio.h,v 1.66 2006/11/22 17:23:24 christos Exp $ */
+/* $NetBSD: stdio.h,v 1.67 2006/12/09 19:33:42 bjh21 Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -316,9 +316,7 @@ __END_DECLS
/*
* Functions defined in ISO XPG4.2, ISO C99, POSIX 1003.1-2001 or later.
*/
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
- !defined(_XOPEN_SOURCE) || \
- ((__STDC_VERSION__ - 0) >= 199901L) || \
+#if ((__STDC_VERSION__ - 0) >= 199901L) || \
((_POSIX_C_SOURCE - 0) >= 200112L) || \
(defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
((_XOPEN_SOURCE - 0) >= 500) || \