From d897f409038f28be019abe5031462371fc096b51 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 18 Mar 2025 22:56:42 +0100 Subject: [PATCH] aqhome-react: add missing includes. --- apps/aqhome-react/types/link.h | 5 ++++- apps/aqhome-react/types/prgrule.c | 4 ++-- apps/aqhome-react/units/u_stabilize.c | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/aqhome-react/types/link.h b/apps/aqhome-react/types/link.h index 04add2b..774220b 100644 --- a/apps/aqhome-react/types/link.h +++ b/apps/aqhome-react/types/link.h @@ -1,6 +1,6 @@ /**************************************************************************** * This file is part of the project AqHome. - * AqHome (c) by 2024 Martin Preuss, all rights reserved. + * AqHome (c) by 2025 Martin Preuss, all rights reserved. * * The license for this file can be found in the file COPYING which you * should have received along with this file. @@ -20,6 +20,9 @@ GWEN_LIST_FUNCTION_DEFS(AQHREACT_LINK, AQHREACT_Link) #include "aqhome-react/types/unit.h" #include "aqhome-react/types/port.h" +#include + + AQHREACT_LINK *AQHREACT_Link_new(); void AQHREACT_Link_free(AQHREACT_LINK *lnk); diff --git a/apps/aqhome-react/types/prgrule.c b/apps/aqhome-react/types/prgrule.c index 5d80ea1..8dcca13 100644 --- a/apps/aqhome-react/types/prgrule.c +++ b/apps/aqhome-react/types/prgrule.c @@ -349,7 +349,7 @@ const char *_readDouble(const char *s, double *ptrDouble) while(*s && isspace(*s)) s++; sStart=s; - while(*s && (isdigit(*s) || *s=='.')) + while(*s && (isdigit(*s) || *s=='.' || *s=='+' || *s=='-')) s++; rv=GWEN_Text_StringToDouble(sStart, ptrDouble); @@ -419,7 +419,7 @@ void _setBitField(uint64_t *ptrBitField, int startValue, int endValue) -//#include "prgrule-t.c" +#include "prgrule-t.c" diff --git a/apps/aqhome-react/units/u_stabilize.c b/apps/aqhome-react/units/u_stabilize.c index 3047f97..e37327c 100644 --- a/apps/aqhome-react/units/u_stabilize.c +++ b/apps/aqhome-react/units/u_stabilize.c @@ -14,6 +14,8 @@ #include +#include + /* ------------------------------------------------------------------------------------------------