View | Details | Raw Unified | Return to bug 281976
Collapse All | Expand All

(-)b/biology/biosig/files/patch-biosig4c++_biosig-dev.h (-5 / +14 lines)
Lines 1-4 Link Here
1
--- biosig4c++/biosig-dev.h.orig	2022-10-08 10:54:15 UTC
1
--- biosig4c++/biosig-dev.h.orig	2024-08-03 10:06:47 UTC
2
+++ biosig4c++/biosig-dev.h
2
+++ biosig4c++/biosig-dev.h
3
@@ -35,6 +35,8 @@
3
@@ -35,6 +35,8 @@
4
 #include <time.h>
4
 #include <time.h>
Lines 9-24 Link Here
9
 
9
 
10
 #ifdef __cplusplus
10
 #ifdef __cplusplus
11
 extern "C" {
11
 extern "C" {
12
@@ -549,6 +551,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch
12
@@ -550,6 +552,12 @@ HDRTYPE* sopen_extended(const char* FileName, const ch
13
 #elif defined(__linux__) 
14
 #  include <endian.h>
13
 #  include <endian.h>
15
 #  include <byteswap.h>
14
 #  include <byteswap.h>
16
+
15
 
17
+#elif defined(__FreeBSD__) 
16
+#elif defined(__FreeBSD__) 
18
+#  include <machine/endian.h>
17
+#  include <machine/endian.h>
19
+#  define __BIG_ENDIAN _BIG_ENDIAN
18
+#  define __BIG_ENDIAN _BIG_ENDIAN
20
+#  define __LITTLE_ENDIAN _LITTLE_ENDIAN
19
+#  define __LITTLE_ENDIAN _LITTLE_ENDIAN
21
+#  define __BYTE_ORDER _BYTE_ORDER
20
+#  define __BYTE_ORDER _BYTE_ORDER
22
 
21
+
23
 #elif defined(__FreeBSD__)
22
 #elif defined(__FreeBSD__)
24
 #  include <machine/endian.h>
23
 #  include <machine/endian.h>
24
 
25
@@ -920,7 +928,7 @@ static inline void bef64a(  double i, void* r) {
26
 #ifndef INFINITY
27
 # define INFINITY (1.0/0.0)   /* positive infinity */
28
 #endif
29
-#ifndef isfinite
30
+#if 0
31
 # define isfinite(a) (-INFINITY < (a) && (a) < INFINITY)
32
 #endif
33
 

Return to bug 281976