Recommended cygwin-1.7 check

Corinna Vinschen corinna-cygwin@cygwin.com
Sat Jun 14 08:51:00 GMT 2008


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/



More information about the Cygwin mailing list