Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita385de9

Browse files
JAndrassyfacchinm
authored andcommitted
IPAddress - Ethernet library compatibility fixes
1 parentee8bce8 commita385de9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎api/IPAddress.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ size_t IPAddress::printTo(Print& p) const
116116
return n;
117117
}
118118

119-
const IPAddressINADDR_NONE(0,0,0,0);
119+
const IPAddressarduino::INADDR_NONE(0,0,0,0);

‎api/IPAddress.h‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
#include"Printable.h"
2424
#include"String.h"
2525

26+
// forward declartions of global name space friend classes
27+
classEthernetClass;
28+
classDhcpClass;
29+
classDNSClient;
30+
2631
namespacearduino {
2732

2833
// A class to make it easier to handle and pass around IP addresses
@@ -67,12 +72,13 @@ class IPAddress : public Printable {
6772

6873
virtualsize_tprintTo(Print& p)const;
6974

70-
friendclassEthernetClass;
7175
friendclassUDP;
7276
friendclassClient;
7377
friendclassServer;
74-
friendclassDhcpClass;
75-
friendclassDNSClient;
78+
79+
friend ::EthernetClass;
80+
friend ::DhcpClass;
81+
friend ::DNSClient;
7682
};
7783

7884
externconst IPAddress INADDR_NONE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp