Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 30 May 2002 19:07:44 +1200 (NZST) From: Clive Nicolson X-X-Sender: clive AT PentiumII DOT bedroom DOT gen DOT nz To: cygwin AT cygwin DOT com cc: clive AT baby DOT bedroom DOT gen DOT nz Subject: Problems with w32api includes Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Recently I've been "porting" some Win32/Perl packages to cygwin/Perl and have had to add __CYGWIN__ conditioned patches to overcome what I assume are differences between native Win include files and those provided by w32api. I've not got access to native Win include files, so can not work out what the extact problems are, but below are 5 examples of the changes I've had to make. I've included all the preceeding context as a aid. The w32api maintainer is most likely to be in a better position to fix these problems than I. I think that items 4) and 5) maybe difficult as those string declarations are most likely in on Win32 systems. Clive 1) #include #ifdef __CYGWIN__ #include #include #endif /* __CYGWIN__ */ 2) #define WIN32_LEAN_AND_MEAN #include #include #ifdef __CYGWIN__ #include typedef ACE_HEADER *PACE_HEADER; typedef ACCESS_ALLOWED_ACE *PACCESS_ALLOWED_ACE; #endif /* __CYGWIN__ */ 3) #define WIN32_LEAN_AND_MEAN #include #include /* LAN Manager common definitions */ #include /* LAN Manager network error definitions */ #include #include #include #undef LPTSTR #define LPTSTR LPWSTR #include #include #undef LPTSTR #define LPTSTR LPSTR #ifdef __CYGWIN__ #include #endif 4) #define WIN32_LEAN_AND_MEAN #include #ifdef __CYGWIN__ WCHAR *wcschr(const WCHAR *, WCHAR); #endif 5) #ifdef __CYGWIN__ int _wcsicmp(const WCHAR *, const WCHAR *); long _wtol(const WCHAR *); #endif /* __CYGWIN__ */ ===============The end========================== -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/