Added MS support for the function macro (#3857)

Fixes #3855
This commit is contained in:
Lemongrass3110 2019-01-17 19:55:28 +01:00 committed by GitHub
parent de70e498dc
commit e415e64264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__ ""