Re: [Openvpn-devel] [PATCH] Make MSVC happy about route.c

2016-01-08 Thread Fish Wang
Thanks for your response. I'll ship a patch for master soon :-) Best, Fish -Original Message- From: Gert Doering [mailto:g...@greenie.muc.de] Sent: Friday, January 8, 2016 10:23 AM To: Fish Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] [PATCH] Make MSVC

Re: [Openvpn-devel] [PATCH] Make MSVC happy about route.c

2016-01-08 Thread Gert Doering
Hi, On Mon, Dec 14, 2015 at 01:06:16PM -0800, Fish wrote: > Move the definition of out to the beginning of functions to comply with > old-style C compilers. Tested on MSVC 2010. [..] > #elif defined (WIN32) > - > - struct buffer out = alloc_buf_gc (64, &gc); > + out = alloc_buf_gc(64, &gc); >

Re: [Openvpn-devel] [PATCH] Make MSVC happy about route.c

2015-12-14 Thread Lev Stipakov
ACK. I don't have VC2010, but at least on 2013 it compiles nicely.

[Openvpn-devel] [PATCH] Make MSVC happy about route.c

2015-12-14 Thread Fish
Move the definition of out to the beginning of functions to comply with old-style C compilers. Tested on MSVC 2010. --- src/openvpn/route.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/openvpn/route.c b/src/openvpn/route.c index cf5a067..c4459f9 100644 --- a/