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

Hindrik Hettema h_hettema at gmx.net
Sat Sep 11 22:28:19 CEST 2004


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.

Kind regards,

Hindrik Hettema

PS: due to current compilation the exact wording of the error I cannot copy 
any more...

> [...]




More information about the kde-cygwin mailing list