forked from bblanchon/ArduinoJson
Added a flag to ignore deprecation warnings
This commit is contained in:
1 parent
78249a0ada
commit
ca01ecfb49
4 files changed
+11
-3
No files matched your search
@@ -6,13 +6,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "jsmn.h"
|
||||
|
||||
|
||||
#ifndef ARDUINO_JSON_NO_DEPRECATED_WARNING
|
||||
#ifdef __GNUC__
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#elif defined(_MSC_VER)
|
||||
#define DEPRECATED __declspec(deprecated)
|
||||
#else
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
#else
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
|
||||
namespace ArduinoJson
|
||||
|
||||
Reference in new issue
Block a user