[gnutls-devel] GnuTLS | WIP: Winstore patches (!835)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Dec 10 15:55:13 CET 2018


Hugo Beauzée-Luyssen commented on a discussion on lib/system.c:

>  	gnutls_gettime = _gnutls_gettime;
>  }
>  
> +#if _WIN32
> +#include <tchar.h>
> +TCHAR *str_to_wide(const char *utf8)

_UNICODE is the define that switches between `FuncA` and `FuncW` variants, so basically if it's not defined anything that's not plain ascii would fail.
When building for winstore, _UNICODE is required as the `FuncA` variants are forbidden/unavailable. 

I'm fine assuming that _UNICODE is defined and always use ucs8/utf16 on windows (and possibly error out if _UNICODE isn't defined) if that works for you

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/835#note_123734617
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181210/159508b9/attachment.html>


More information about the Gnutls-devel mailing list