summaryrefslogtreecommitdiffstats
path: root/sys/sys/cdefs.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2005-11-15 15:46:41 +0000
committermillert <millert@openbsd.org>2005-11-15 15:46:41 +0000
commitd2cb2b6278a7fcbf8ab5aa4d5f6a7e75671823d6 (patch)
tree489a252d86b8dc56017f67d2806cebf697842fa1 /sys/sys/cdefs.h
parentoh, once we are on bus1, we must have a way to get back to bus0... duh (diff)
downloadwireguard-openbsd-d2cb2b6278a7fcbf8ab5aa4d5f6a7e75671823d6.tar.xz
wireguard-openbsd-d2cb2b6278a7fcbf8ab5aa4d5f6a7e75671823d6.zip
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.
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r--sys/sys/cdefs.h16
1 files changed, 1 insertions, 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 $ */
/*
@@ -300,20 +300,6 @@
#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.
*/
#ifndef __XPG_VISIBLE