Skip to content

Commit

Permalink
Added detection of Atmel AVR8/GNU C Compiler (fixes #1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Oct 18, 2019
1 parent 16fe3c0 commit d4f819f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ HEAD
* Added conversion from `JsonArray` and `JsonObject` to `bool`, to be consistent with `JsonVariant`
* Fixed `deserializeJson()` when input contains duplicate keys (issue #1095)
* Improved `deserializeMsgPack()` speed by reading several bytes at once
* Added detection of Atmel AVR8/GNU C Compiler (issue #1112)

v6.12.0 (2019-09-05)
-------
Expand Down
7 changes: 5 additions & 2 deletions src/ArduinoJson/Configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@

// Small or big machine?
#ifndef ARDUINOJSON_EMBEDDED_MODE
#if defined(ARDUINO) || defined(__IAR_SYSTEMS_ICC__) || defined(__XC) || \
defined(__ARMCC_VERSION)
#if defined(ARDUINO) /* Arduino*/ \
|| defined(__IAR_SYSTEMS_ICC__) /* IAR Embedded Workbench */ \
|| defined(__XC) /* MPLAB XC compiler */ \
|| defined(__ARMCC_VERSION) /* Keil ARM Compiler */ \
|| defined(__AVR) /* Atmel AVR8/GNU C Compiler */
#define ARDUINOJSON_EMBEDDED_MODE 1
#else
#define ARDUINOJSON_EMBEDDED_MODE 0
Expand Down

0 comments on commit d4f819f

Please sign in to comment.