delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-5.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG |
X-Spam-Check-By: | sourceware.org |
X-Received: | by 10.14.174.132 with SMTP id x4mr204913204eel.39.1357969600799; Fri, 11 Jan 2013 21:46:40 -0800 (PST) |
Message-ID: | <50F0F8BE.5060000@gmail.com> |
Date: | Sat, 12 Jan 2013 06:46:38 +0100 |
From: | marco atzeri <marco DOT atzeri AT gmail DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
MIME-Version: | 1.0 |
To: | Denis Excoffier <cygwin AT Denis-Excoffier DOT org> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: XOPEN_SOURCE and string.h |
References: | <DB6397CD-79A6-428E-9B08-15365DC7BCF4 AT Denis-Excoffier DOT org> <50F08B7A DOT 8000900 AT gmail DOT com> <529F8785-F5F4-44F6-AAE1-B422E904073F AT Denis-Excoffier DOT org> |
In-Reply-To: | <529F8785-F5F4-44F6-AAE1-B422E904073F@Denis-Excoffier.org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 1/12/2013 12:50 AM, Denis Excoffier wrote: > On 2013-01-11 23:00, marco atzeri wrote: >> On 1/11/2013 10:47 PM, Denis Excoffier wrote: >>> Hello, >> >> are you sure about that file ? > Sure yes. It has been inside Cygwin snapshots since end of last December. It was > introduced in newlib near the 22nd October 2012. I suppose that other occurrences of > _XOPEN_SOURCE have to be checked. > > % cygcheck -f /usr/include/string.h > cygwin-1.7.17-1 > % uname -a > CYGWIN_NT-5.1 jupiter 1.7.18s(0.263/5/3) 20130111 15:37:20 i686 Cygwin > % > > See http://cygwin.com/ml/cygwin/2011-02/msg00534.html (and many others). > > Denis Excoffier. > looking at CVS source. the one you found should be the only occurrence, and it is coming from newlib src/newlib/libc/include/string.h:#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 500) src/newlib/libc/include/string.h:#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 700) in the only other place it is already implemented like taht src/newlib/libc/include/sys/features.h: #if (_XOPEN_SOURCE - 0) == 700 /* POSIX.1-2008 */ src/newlib/libc/include/sys/features.h: #elif (_XOPEN_SOURCE - 0) == 600 /* POSIX.1-2001 or 2004 */ src/newlib/libc/include/sys/features.h: #elif (_XOPEN_SOURCE - 0) == 500 /* POSIX.1-1995 */ src/newlib/libc/include/sys/features.h: #elif (_XOPEN_SOURCE - 0) < 500 /* really old */ and there is a specific note on the matter: * _POSIX_C_SOURCE if _XOPEN_SOURCE is defined and _POSIX_C_SOURCE is not. * (_XOPEN_SOURCE indicates that XSI extensions are desired by an application.) * Allow for _XOPEN_SOURCE to be empty (from the earliest form of it, before it Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |