From 5c949f8cab9c2932f91a6805d140556221c51f09 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 25 Jan 2023 18:40:22 +0100 Subject: [PATCH] Extend usage of std::function on all the platforms where it's available --- src/PubSubClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PubSubClient.h b/src/PubSubClient.h index c70d9fd3..d4d9a23c 100755 --- a/src/PubSubClient.h +++ b/src/PubSubClient.h @@ -76,7 +76,7 @@ // Maximum size of fixed header and variable length size header #define MQTT_MAX_HEADER_SIZE 5 -#if defined(ESP8266) || defined(ESP32) +#if __has_include() #include #define MQTT_CALLBACK_SIGNATURE std::function callback #else