From: Steffan Karger Date: Wed, 1 Jul 2015 21:25:56 +0000 (+0200) Subject: Make __func__ work with Visual Studio too X-Git-Tag: v2.4_alpha1~277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9884e20810bda737c7708ff587e09cc0bb8475c7;p=thirdparty%2Fopenvpn.git Make __func__ work with Visual Studio too Because even VS2013 is incapable of doing C99. Signed-off-by: Steffan Karger Tested-by: Fish Wang Acked-by: Gert Doering Message-Id: URL: http://article.gmane.org/gmane.network.openvpn.devel/9859 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index cf29131f2..ff0bf419b 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