This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Recommended cygwin-1.7 check
- From: "Reini Urban" <rurban at x-ray dot at>
- To: cygwin at cygwin dot com
- Date: Fri, 13 Jun 2008 19:11:48 +0200
- Subject: Recommended cygwin-1.7 check
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.
Or shouldn't some default definition in <sys/cygwin.h> be used instead?
Otherwise one has to add
#include <cygwin/version.h>
everywhere.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
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/