diff options
author | Mike Barcroft <mike@FreeBSD.org> | 2002-10-21 20:50:30 +0000 |
---|---|---|
committer | Mike Barcroft <mike@FreeBSD.org> | 2002-10-21 20:50:30 +0000 |
commit | bb8345d65bf01f1c9472633716092c72c1c258be (patch) | |
tree | 477b277de5a64ba24a85c0c36f11d538a38ee86d /sys/sys/cdefs.h | |
parent | 1c671071493fda4104dd043c2d7ae8798b707f11 (diff) | |
download | src-bb8345d65bf01f1c9472633716092c72c1c258be.tar.gz src-bb8345d65bf01f1c9472633716092c72c1c258be.zip |
Add the ability to specify a strict C99 environment with the
_C99_SOURCE constant, which should be defined before including any
standard headers.
Notes
Notes:
svn path=/head/; revision=105654
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r-- | sys/sys/cdefs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index efb0b75a0b7e..bab01e53f2de 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -373,11 +373,16 @@ * _POSIX_C_SOURCE, we will assume that it wants the broader compilation * environment (and in fact we will never get here). */ -#ifdef _ANSI_SOURCE /* Hide almost everything. */ +#if defined(_ANSI_SOURCE) /* Hide almost everything. */ #define __POSIX_VISIBLE 0 #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 1990 +#elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ +#define __POSIX_VISIBLE 0 +#define __XSI_VISIBLE 0 +#define __BSD_VISIBLE 0 +#define __ISO_C_VISIBLE 1999 #else /* Default environment: show everything. */ #define __POSIX_VISIBLE 200112 #define __XSI_VISIBLE 600 |