forked from bblanchon/ArduinoJson
23 lines
620 B
C++
23 lines
620 B
C++
// Copyright Benoit Blanchon 2014-2017
|
|
// MIT License
|
|
//
|
|
// Arduino JSON library
|
|
// https://bblanchon.github.io/ArduinoJson/
|
|
// If you like this project, please add a star!
|
|
|
|
#pragma once
|
|
|
|
#ifdef _MSC_VER
|
|
#define FORCE_INLINE __forceinline
|
|
#define NO_INLINE __declspec(noinline)
|
|
#define DEPRECATED(msg) __declspec(deprecated(msg))
|
|
#else
|
|
#define FORCE_INLINE __attribute__((always_inline))
|
|
#define NO_INLINE __attribute__((noinline))
|
|
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
|
#define DEPRECATED(msg) __attribute__((deprecated(msg)))
|
|
#else
|
|
#define DEPRECATED(msg) __attribute__((deprecated))
|
|
#endif
|
|
#endif
|