Explorar o código

Added MS support for the function macro (#3857)

Fixes #3855
Lemongrass3110 %!s(int64=6) %!d(string=hai) anos
pai
achega
e415e64264
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/common/cbasetypes.hpp

+ 2 - 1
src/common/cbasetypes.hpp

@@ -62,7 +62,8 @@
 // debug function name
 #ifndef __NETBSD__
 #if __STDC_VERSION__ < 199901L
-#	if __GNUC__ >= 2
+// Microsoft also supports this since C++11
+#	if __GNUC__ >= 2 || defined(_MSC_VER)
 #		define __func__ __FUNCTION__
 #	else
 #		define __func__ ""