This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Recommended cygwin-1.7 check


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]