]> Savannah Git Hosting - gnulib.git/commit
Don't assume that UNICODE is not defined.
authorBruno Haible <bruno@clisp.org>
Thu, 28 May 2020 00:31:53 +0000 (02:31 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 28 May 2020 00:31:53 +0000 (02:31 +0200)
commit278738f2881906b3a3efd2144ff8081a39c17587
tree9627941ad0483af0da25cc4a30ab866af78fe01c
parente0dc0ffc6f2f2a4826156d7451e1dc6e80e53243
Don't assume that UNICODE is not defined.

Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
differently if the application defines the macro UNICODE.

Reported by Steve Lhomme <robux4@ycbcr.xyz> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.

* lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
* lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
* lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
ChangeLog
lib/link.c
lib/localename.c
lib/stat-w32.c