mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
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:
committed by
Tormod Volden
parent
d014a11545
commit
b09074ea77
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11757
|
||||
#define LIBUSB_NANO 11758
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user