delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Sat, 14 Jun 2008 10:49:54 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Recommended cygwin-1.7 check |
Message-ID: | <20080614084954.GW731@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <6910a60806131011t553f5b99qaf1867a95cd144c8 AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <6910a60806131011t553f5b99qaf1867a95cd144c8@mail.gmail.com> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Jun 13 19:11, Reini Urban wrote: > How should one check for the new cygwin 1.7 API, esp. wchar pathnames? > > So far I've used > #include <cygwin/version.h> > #if (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 181) > because I needed cygwin_conv_path() > > But I assume > #if CYGWIN_VERSION_DLL_MAJOR >= 1007 > should be used instead. It's your choice. Usually for the cygwin_conv_path case it's probably better to use the first one, but keeping the global picture in mind... > Or shouldn't some default definition in <sys/cygwin.h> be used instead? > Otherwise one has to add > #include <cygwin/version.h> > everywhere. Only where you need it. Where's the problem? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |