fix compilation with msvc
__attribute__ macro is not defined in msvc and it is not essential to the implementation. All it does is tell the compiler that this function is similar to printf, and expects a printf-like format string So for MSVC we define __attribute__ as a macro that do nothing
This commit is contained in:
committed by
Daniele Varrazzo
parent
4d59be0a66
commit
05fac2dac3
@ -24,6 +24,10 @@
|
||||
|
||||
#define INFINITE_STR "INFINITE"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define __attribute__(x)
|
||||
#endif
|
||||
|
||||
typedef enum YesNo
|
||||
{
|
||||
DEFAULT,
|
||||
|
Reference in New Issue
Block a user