소스 검색

Added MS support for the function macro (#3857)

Fixes #3855
Lemongrass3110 6 년 전
부모
커밋
e415e64264
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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__ ""