delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/13/13:12:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <6910a60806131011t553f5b99qaf1867a95cd144c8@mail.gmail.com>
Date: Fri, 13 Jun 2008 19:11:48 +0200
From: "Reini Urban" <rurban AT x-ray DOT at>
To: cygwin AT cygwin DOT com
Subject: Recommended cygwin-1.7 check
MIME-Version: 1.0
X-Google-Sender-Auth: 868a80008ed565a2
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019