Skip to content

Commit e0d2414

Browse files
Error if both LEAmDNS and SimpleMDNS used
1 parent 1a05d92 commit e0d2414

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

libraries/LEAmDNS/src/LEAmDNS.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,3 +1348,8 @@ class MDNSResponder {
13481348
} // namespace esp8266
13491349

13501350
#include <ESP8266mDNS.h>
1351+
1352+
#define __LEAMDNS_H 1
1353+
#ifdef __SIMPLEMDNS_H
1354+
#error SimpleMDNS and LeaMDNS both included. Only one allowed at a time.
1355+
#endif

libraries/SimpleMDNS/src/SimpleMDNS.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ class SimpleMDNS {
4444
};
4545

4646
extern SimpleMDNS MDNS;
47+
48+
#define __SIMPLEMDNS_H 1
49+
#ifdef __LEAMDNS_H
50+
#error SimpleMDNS and LeaMDNS both included. Only one allowed at a time.
51+
#endif

0 commit comments

Comments
 (0)