Re: [Openvpn-devel] rfc: mingw and the interactive service code

2021-01-28 Thread Lev Stipakov
Hi, > > Any thoughts? I'm leaning towards option (ii). > > Agreed! Option (ii) sounds most reasonable to me too. According to https://docs.microsoft.com/en-us/cpp/c-runtime-library/format-specification-syntax-printf-and-wprintf-functions?view=msvc-160#flags VisualStudio is perfectly fine with %

Re: [Openvpn-devel] rfc: mingw and the interactive service code

2021-01-28 Thread David Sommerseth
On 28/01/2021 04:04, Selva Nair wrote: Hi, Starting version 8, mingw has started automatically setting __USE_MINGW_ANSI_STDIO = 1 under some feature-set conditions: for example, when _GNU_SOURCE is defined or -std=C99, both of which are true in our case. See: release notes at http://mingw-w

Re: [Openvpn-devel] rfc: mingw and the interactive service code

2021-01-27 Thread Gert Doering
Hi, On Wed, Jan 27, 2021 at 10:04:49PM -0500, Selva Nair wrote: > I see two options: > (i) force __USE_MINGW_ANSI_STDIO = 0 in configure. > (ii) Change all stdio function calls to be compatible building with and > without this macro defined. AFICT, the only change required would be to > replace %s

[Openvpn-devel] rfc: mingw and the interactive service code

2021-01-27 Thread Selva Nair
Hi, Starting version 8, mingw has started automatically setting __USE_MINGW_ANSI_STDIO = 1 under some feature-set conditions: for example, when _GNU_SOURCE is defined or -std=C99, both of which are true in our case. See: release notes at http://mingw-w64.org/doku.php This causes several stdio fu