Defined the DEPRECATED macro

This commit is contained in:
Benoît Blanchon
2014-07-16 13:53:56 +02:00
parent 6a868e46bd
commit 7487b8cbb7
7 changed files with 23 additions and 22 deletions

View File

@ -7,6 +7,14 @@
#include "jsmn.h"
#ifdef __GNUC__
#define DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define DEPRECATED __declspec(deprecated)
#else
#define DEPRECATED
#endif
namespace ArduinoJson
{
namespace Parser