From 517f8dbc4f4736fcda2586523499e7d43ddc2578 Mon Sep 17 00:00:00 2001 From: AddioElectronics <59629419+AddioElectronics@users.noreply.github.com> Date: Wed, 9 Feb 2022 16:18:51 -0800 Subject: Added #pragma once to PolledTimeout.h FTPCommon.h was not compiling because __POLLEDTIMING_H__ was already declared in the ESP8266 Core. --- esp32compat/PolledTimeout.h | 4 +--- esp8266compat/PolledTimeout.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/esp32compat/PolledTimeout.h b/esp32compat/PolledTimeout.h index 06fe14e..5841993 100644 --- a/esp32compat/PolledTimeout.h +++ b/esp32compat/PolledTimeout.h @@ -1,5 +1,4 @@ -#ifndef __POLLEDTIMING_H__ -#define __POLLEDTIMING_H__ +#pragma once /* @@ -251,4 +250,3 @@ using periodicMs = polledTimeout::timeoutTemplate; }//esp32 -#endif diff --git a/esp8266compat/PolledTimeout.h b/esp8266compat/PolledTimeout.h index ec4064f..a076710 100644 --- a/esp8266compat/PolledTimeout.h +++ b/esp8266compat/PolledTimeout.h @@ -1,5 +1,4 @@ -#ifndef __POLLEDTIMING_H__ -#define __POLLEDTIMING_H__ +#pragma once /* @@ -286,4 +285,3 @@ using periodicFastNs = polledTimeout::timeoutTemplate