Path: blob/main/biology/biosig/files/patch-biosig4c++_biosig-dev.h
18160 views
--- biosig4c++/biosig-dev.h.orig 2024-08-03 10:06:47 UTC1+++ biosig4c++/biosig-dev.h2@@ -35,6 +35,8 @@3#include <time.h>4#include "physicalunits.h"56+#include <sys/endian.h>7+#include <machine/endian.h> // for betoh16, etc.89#ifdef __cplusplus10extern "C" {11@@ -550,6 +552,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch12# include <endian.h>13# include <byteswap.h>1415+#elif defined(__FreeBSD__)16+# include <machine/endian.h>17+# define __BIG_ENDIAN _BIG_ENDIAN18+# define __LITTLE_ENDIAN _LITTLE_ENDIAN19+# define __BYTE_ORDER _BYTE_ORDER20+21#elif defined(__FreeBSD__)22# include <machine/endian.h>2324@@ -920,7 +928,7 @@ static inline void bef64a( double i, void* r) {25#ifndef INFINITY26# define INFINITY (1.0/0.0) /* positive infinity */27#endif28-#ifndef isfinite29+#if 030# define isfinite(a) (-INFINITY < (a) && (a) < INFINITY)31#endif32333435