Hi, On Thu, Feb 25, 2016 at 4:00 PM, Fish <fish.t...@gmail.com> wrote:
> +#ifndef _WIN32_H > +#define _WIN32_H > + > +#if defined(_MSC_VER) > +#define snwprintf _snwprintf > +#endif > + > +#endif > We could've just used _snwprintf directly in the sources and avoided a new header file. mingw has both. Well, may be someone would care to write an openvpn_snwprintf wrapper like the openvpn_sntprintf.. const WCHAR *msg1 = L"You have specified a config file location (%s > relative to %s)" > - " that requires admin approval. This error may be > avoided" > - " by adding your account to the \"%s\" group"; > + L" that requires admin approval. This error may > be avoided" > + L" by adding your account to the \"%s\" group"; Good to know MS has its own standards :-) By the way, I'm going to submit the rebased patch for block-outside-dns through iservice later tonight. But no idea what is required to make it compile with Visual Studio. Selva