Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/cfitsio/files/patch-fitsio2.h
16461 views
1
from astro/p5-Astro-FITS-CFITSIO build log:
2
3
/usr/local/include/fitsio2.h:271:5: error: invalid token at start of a preprocessor expression
4
#if MACHINE == CRAY
5
^
6
/usr/include/machine/param.h:59:18: note: expanded from macro 'MACHINE'
7
#define MACHINE "amd64"
8
^
9
10
--- fitsio2.h.orig 2023-07-21 14:37:17 UTC
11
+++ fitsio2.h
12
@@ -268,14 +268,14 @@ extern int Fitsio_Pthread_Status;
13
14
#endif
15
16
-#if MACHINE == CRAY
17
+#if 0
18
/*
19
Cray machines: the large negative integer corresponds
20
to the 3 most sig digits set to 1. If these
21
3 bits are set in a floating point number (64 bits), then it represents
22
a reserved value (i.e., a NaN)
23
*/
24
-#define fnan(L) ( (L) >= 0xE000000000000000 ? 1 : 0) )
25
+#define fnan(L) ( (L) >= 0xE000000000000000 ? 1 : 0)
26
27
#else
28
/* these functions work for both big and little endian machines */
29
30