-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(net): Use typedefs instead to help with forward declarations
Defines do not allow forward declarations
- Loading branch information
Showing
5 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#pragma once | ||
#warning WiFiClientSecure has been deprecated, please use NetworkClientSecure instead. | ||
#include "NetworkClientSecure.h" | ||
#define WiFiClientSecure NetworkClientSecure | ||
typedef NetworkClientSecure WiFiClientSecure; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#pragma once | ||
#warning WiFiClient has been deprecated, please use NetworkClient instead. | ||
#include "NetworkClient.h" | ||
#define WiFiClient NetworkClient | ||
typedef NetworkClient WiFiClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#pragma once | ||
#warning WiFiServer has been deprecated, please use NetworkServer instead. | ||
#include "NetworkServer.h" | ||
#define WiFiServer NetworkServer | ||
typedef NetworkServer WiFiServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#pragma once | ||
#warning WiFiUDP has been deprecated, please use NetworkUDP instead. | ||
#include "NetworkUdp.h" | ||
#define WiFiUDP NetworkUDP | ||
typedef NetworkUDP WiFiUDP; |