From bc6bab89932952e9c8e3eeea730df671de34fcdc Mon Sep 17 00:00:00 2001 From: James Foster Date: Thu, 26 Nov 2020 09:15:48 -0800 Subject: [PATCH] Add `IPAddress.h` to `Client.h` for cases where `Arduino.h` was not included first. --- CHANGELOG.md | 1 + SampleProjects/NetworkLib/test/client.cpp | 7 +++++++ cpp/arduino/Client.h | 1 + 3 files changed, 9 insertions(+) create mode 100644 SampleProjects/NetworkLib/test/client.cpp diff --git a/CHANGELOG.md b/CHANGELOG.md index acf3d0eb..c2e05b28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Removed ### Fixed +- Missing include of `IPAddress.h` in `Client.h` ### Security diff --git a/SampleProjects/NetworkLib/test/client.cpp b/SampleProjects/NetworkLib/test/client.cpp new file mode 100644 index 00000000..8e740c34 --- /dev/null +++ b/SampleProjects/NetworkLib/test/client.cpp @@ -0,0 +1,7 @@ +#include +// test for including without +#include + +unittest(test) { assertTrue(true); } + +unittest_main() diff --git a/cpp/arduino/Client.h b/cpp/arduino/Client.h index b08e183e..154e618d 100644 --- a/cpp/arduino/Client.h +++ b/cpp/arduino/Client.h @@ -1,6 +1,7 @@ #pragma once #include +#include class Client : public Stream { public: