diff --git a/biology/biosig/files/patch-biosig4c++_biosig-dev.h b/biology/biosig/files/patch-biosig4c++_biosig-dev.h index 8a489fdfc0db..9ca61e910c80 100644 --- a/biology/biosig/files/patch-biosig4c++_biosig-dev.h +++ b/biology/biosig/files/patch-biosig4c++_biosig-dev.h @@ -1,24 +1,33 @@ ---- biosig4c++/biosig-dev.h.orig 2022-10-08 10:54:15 UTC +--- biosig4c++/biosig-dev.h.orig 2024-08-03 10:06:47 UTC +++ biosig4c++/biosig-dev.h @@ -35,6 +35,8 @@ #include #include "physicalunits.h" +#include +#include // for betoh16, etc. #ifdef __cplusplus extern "C" { -@@ -549,6 +551,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch - #elif defined(__linux__) +@@ -550,6 +552,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch # include # include -+ + +#elif defined(__FreeBSD__) +# include +# define __BIG_ENDIAN _BIG_ENDIAN +# define __LITTLE_ENDIAN _LITTLE_ENDIAN +# define __BYTE_ORDER _BYTE_ORDER - ++ #elif defined(__FreeBSD__) # include + +@@ -920,7 +928,7 @@ static inline void bef64a( double i, void* r) { + #ifndef INFINITY + # define INFINITY (1.0/0.0) /* positive infinity */ + #endif +-#ifndef isfinite ++#if 0 + # define isfinite(a) (-INFINITY < (a) && (a) < INFINITY) + #endif +