Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2003 09:15:48 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        standards@freebsd.org, current@freebsd.org
Subject:   CFR: add widely accepted _ISOC99_SOURCE
Message-ID:  <20030310061548.GA85361@nagual.pp.ru>

next in thread | raw e-mail | index | archive | help
Many programs (from ports too) defines _ISOC99_SOURCE to get C99 
functions, but we don't sense this define currently. Here is the fix for 
review:

--- cdefs.h.bak	Wed Oct 23 05:04:06 2002
+++ cdefs.h	Mon Mar 10 09:11:01 2003
@@ -360,6 +360,9 @@
 #define	__POSIX_VISIBLE		198808
 #define	__ISO_C_VISIBLE		0
 #endif /* _POSIX_C_SOURCE */
+#ifdef _ISOC99_SOURCE
+#define	__ISO_C_VISIBLE		1999
+#endif
 #else
 /*-
  * Deal with _ANSI_SOURCE:
@@ -378,7 +381,7 @@
 #define	__XSI_VISIBLE		0
 #define	__BSD_VISIBLE		0
 #define	__ISO_C_VISIBLE		1990
-#elif defined(_C99_SOURCE)	/* Localism to specify strict C99 env. */
+#elif defined(_ISOC99_SOURCE)	/* Strict C99 env. */
 #define	__POSIX_VISIBLE		0
 #define	__XSI_VISIBLE		0
 #define	__BSD_VISIBLE		0

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030310061548.GA85361>