[Kde-cygwin-cvs] CVS: qt-3/src/kernel qfont_win.cpp, 1.1.2.17, 1.1.2.18

Ralf Habacker ralf.habacker at freenet.de
Wed Sep 15 12:48:56 CEST 2004


On Tuesday 14 September 2004 15:46, Thiago A. Corrêa wrote:
> Isn't there a macro from TT like qstrncpy() to mask those compiler
> differences?

I've added a macro qt_strncpy() in src/kernel/qt_windows.h which handles this 
stuff. Will be available in anonymous cvs after a while. 

Ralf 


>
> ----- Original Message -----
> From: "Ralf Habacker" <ralf.habacker at freenet.de>
> To: "For developers interested in porting KDE to Windows using Cygwin"
> <kde-cygwin at kde.org>
> Sent: Monday, September 13, 2004 1:27 AM
> Subject: Re: [Kde-cygwin-cvs] CVS: qt-3/src/kernel qfont_win.cpp,
> 1.1.2.17,1.1.2.18
>
> > On Saturday 11 September 2004 22:28, Hindrik Hettema wrote:
> > > Peter Kuemmel <kuemmel <at> coffeelogic.de> writes:
> > > > Using _tcsncpy prevents preprocessor macros!
> > > >
> > > > Functions:
> > > > char    *strncpy ( char *   , const char *   , size_t  );
> > > > wchar_t *wcsncpy ( wchar_t *, const wchar_t *, size_t  );
> > > >
> > > > A small table for _tcsncpy:
> > > > UNICODE  |     NO         yes
> > > > -------------------------------
> > > > _tcsncpy |  strncpy    wcsncpy
> > > > LPTSTR   |   LPSTR      LPWSTR
> > >
> > > Using _tcsncpy breaks compilation of qt-win32 on CYGWIN of 20040910
> > > (function not found). Quick hack was to replace function by strncpy and
> > > stated in email by Brandino... For your information.
> >
> > It would be nice if someone could provide a tested patch.
> >
> > Regards
> > Ralf
> >
> > _______________________________________________
> > kde-cygwin mailing list
> > kde-cygwin at kde.org
> > https://mail.kde.org/mailman/listinfo/kde-cygwin
>
> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin at kde.org
> https://mail.kde.org/mailman/listinfo/kde-cygwin



More information about the kde-cygwin mailing list