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