Skip to content

Commit

Permalink
Include Arduino.h AFTER memory.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stefangordon committed Jan 15, 2016
1 parent 3873627 commit 7f7a1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/WiFiClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

#ifndef wificlient_h
#define wificlient_h
#include <memory>
#include "Arduino.h"
#include "Print.h"
#include "Client.h"
#include "IPAddress.h"
#include <memory>
#include "include/slist.h"

#define WIFICLIENT_MAX_PACKET_SIZE 1460
Expand Down

0 comments on commit 7f7a1ac

Please sign in to comment.