From db530a74abd93506dd1163607159106f3853f118 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 15 Nov 2005 15:46:42 +0000 Subject: Having __STRICT_ANSI__ (gcc -ansi) stop all non-ANSI interfaces from being visible causes too many problems to be worth it. Lots of thigns in ports use -ansi and expect to still be able to use POSIX bits. We may want to disable long long for __STRICT_ANSI__ in the future since this is consistent with what gcc whines about. --- sys/sys/cdefs.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index dd0f5c29878..d05787eabdd 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.18 2005/05/27 21:28:12 millert Exp $ */ +/* $OpenBSD: cdefs.h,v 1.19 2005/11/15 15:46:41 millert Exp $ */ /* $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ */ /* @@ -299,20 +299,6 @@ # define __OPENBSD_VISIBLE 0 #endif -/* - * __STRICT_ANSI__ (gcc -ansi) overrides everything else. - */ -#ifdef __STRICT_ANSI__ -# undef __POSIX_VISIBLE -# define __POSIX_VISIBLE 0 -# undef __XPG_VISIBLE -# define __XPG_VISIBLE 0 -# undef __ISO_C_VISIBLE -# define __ISO_C_VISIBLE 1990 -# undef __OPENBSD_VISIBLE -# define __OPENBSD_VISIBLE 0 -#endif - /* * Default values. */ -- cgit v1.2.3