Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit fc626b2

Browse files
authored
v1.8.0 to use Ethernet_Generic library
### Releases v1.8.0 1. Use new [Ethernet_Generic library](https://github.com/khoih-prog/Ethernet_Generic) as default for W5x00. 2. Rewrite to avoid `multiple-definitions` linker error for multiple-file project 3. Add example [multiFileProject](examples/multiFileProject) to demo how to avoid `multiple-definitions` linker error for multiple-file project 4. Update `Packages' Patches`
1 parent 038fe83 commit fc626b2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/SSLClient/SSLClient.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
#pragma once
2222

23+
#ifndef SSL_CLIENT_H
24+
#define SSL_CLIENT_H
25+
2326
#include "Client.h"
2427
#include "SSLClient/SSLSession.h"
2528
#include "SSLClient/SSLClientParameters.h"
@@ -526,4 +529,4 @@ class EthernetSSLClient : public Client
526529
unsigned m_br_last_state;
527530
};
528531

529-
#include "SSLClient/SSLClient_Impl.h"
532+
#endif // SSL_CLIENT_H

src/SSLClient/SSLClient_Impl.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020

2121
#pragma once
2222

23+
#ifndef SSL_CLIENT_IMPL_H
24+
#define SSL_CLIENT_IMPL_H
25+
2326
#include "detail/Debug.h"
24-
//#include "SSLClient/SSLClient.h"
2527

2628
/* see SSLClient.h */
2729
EthernetSSLClient::EthernetSSLClient( Client& client,
@@ -1096,3 +1098,5 @@ void EthernetSSLClient::m_print_br_state(const unsigned state, const DebugLevel
10961098
Serial.println(" RECVAPP");
10971099
}
10981100
}
1101+
1102+
#endif // SSL_CLIENT_IMPL_H

0 commit comments

Comments
 (0)