Re: [Openvpn-devel] [PATCH v4] Make openvpnserv compilable under Visual Studio.

2016-02-25 Thread Selva Nair
Hi, On Thu, Feb 25, 2016 at 4:00 PM, Fish 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 so

[Openvpn-devel] [PATCH v4] Make openvpnserv compilable under Visual Studio.

2016-02-25 Thread Fish
Compiled under VS 2010/2013 and Windows 10. The following major changes are made: - Remove all runtime function resolving code since OpenVPN 2.4 is targeting Vista+. - Make sure local header inclusion uses double-quotes instead of angle brackets. - Update openvpnserv.vcxproj to include new sou