windows: Define __func__ for vs2015

The __func__ macro is defined by the C99 standard (but not C++99/03).

The default C compiler in msvc implements C89, plus Microsoft extensions,
some of which are part of C99.

It appears that both vs2013 and vs2015 don't define __func__.

Closes #1170
This commit is contained in:
Alexander Mot
2022-08-08 10:06:10 -07:00
committed by Tormod Volden
parent d014a11545
commit b09074ea77
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11757
#define LIBUSB_NANO 11758

View File

@@ -10,8 +10,8 @@
#error "Visual Studio 2013 or later is required."
#endif
/* Visual Studio 2013 does not support __func__ */
#if (_MSC_VER < 1900)
/* Visual Studio 2013 and 2015 do not support __func__ */
#if (_MSC_VER <= 1900)
#define __func__ __FUNCTION__
#endif