Skip to content

Commit bc6bab8

Browse files
author
James Foster
committed
Add IPAddress.h to Client.h for cases where Arduino.h was not included first.
1 parent becf990 commit bc6bab8

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1515
### Removed
1616

1717
### Fixed
18+
- Missing include of `IPAddress.h` in `Client.h`
1819

1920
### Security
2021

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <ArduinoUnitTests.h>
2+
// test for including <Client.h> without <Arduino.h>
3+
#include <Client.h>
4+
5+
unittest(test) { assertTrue(true); }
6+
7+
unittest_main()

cpp/arduino/Client.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <Stream.h>
4+
#include <IPAddress.h>
45

56
class Client : public Stream {
67
public:

0 commit comments

Comments
 (0)