On Wed, Jul 1, 2015 at 9:47 PM, Fish Wang <fish.t...@gmail.com> wrote: > The following patch resolves this issue.
I think we can do this more simple and robust. See the attached patch. Can you please report if that works for you? Thanks. -Steffan
From 6e0073163dd3c13a957f8b1760a81a5ef16e65a9 Mon Sep 17 00:00:00 2001 From: Steffan Karger <stef...@karger.me> Date: Wed, 1 Jul 2015 23:25:56 +0200 Subject: [PATCH] Make __func__ work with Visual Studio too Because even VS2013 is incapable of doing C99. Signed-off-by: Steffan Karger <stef...@karger.me> --- src/openvpn/syshead.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index cf29131..ff0bf41 100644 --- a/src/openvpn/syshead.h +++ b/src/openvpn/syshead.h @@ -45,6 +45,10 @@ #define srandom srand #endif +#ifdef _MSC_VER // Visual Studio +#define __func__ __FUNCTION__ +#endif + #if defined(__APPLE__) #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070 #define __APPLE_USE_RFC_3542 1 -- 2.1.4