Skip to content

Commit 7f7a1ac

Browse files
committed
Include Arduino.h AFTER memory.h
Arduino.h defines min/max which are then redefined with templates in stl_algobase.h imported from memory.h. This is the least impactful way I can find to get past this for now and unblock use of wificlient in more scenarios.
1 parent 3873627 commit 7f7a1ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/WiFiClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
#ifndef wificlient_h
2323
#define wificlient_h
24+
#include <memory>
2425
#include "Arduino.h"
2526
#include "Print.h"
2627
#include "Client.h"
2728
#include "IPAddress.h"
28-
#include <memory>
2929
#include "include/slist.h"
3030

3131
#define WIFICLIENT_MAX_PACKET_SIZE 1460

0 commit comments

Comments
 (0)