Added missing #pragma once (issue #310)

This commit is contained in:
Benoit Blanchon
2016-06-23 21:27:24 +02:00
parent 59cd1f1433
commit 10fcca20f8
5 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,11 @@
ArduinoJson: change log
=======================
HEAD
----
* Added missing `#pragma once` (issue #310)
v5.6.0
------

View File

@ -20,6 +20,7 @@ Features
* Portable (written in C++98)
* Self-contained (no external dependency)
* Small footprint
* Header-only library
* MIT License
Works on

View File

@ -5,6 +5,8 @@
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!
#pragma once
#include "ArduinoJson/DynamicJsonBuffer.hpp"
#include "ArduinoJson/JsonArray.hpp"
#include "ArduinoJson/JsonObject.hpp"

View File

@ -5,8 +5,10 @@
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!
#include "JsonParser.hpp"
#pragma once
#include "Comments.hpp"
#include "JsonParser.hpp"
inline bool ArduinoJson::Internals::JsonParser::skip(char charToSkip) {
const char *ptr = skipSpacesAndComments(_readPtr);

View File

@ -5,6 +5,8 @@
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!
#pragma once
#include "Internals/JsonParser.hpp"
inline ArduinoJson::JsonArray &ArduinoJson::JsonBuffer::createArray() {