1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-19 11:40:31 -04:00
ports/cad/calculix-ccx/files/patch-CalculiX.h
Pedro F. Giffuni 4ef961b47d cad/calculix : update to version 2.16
In CalculiX CrunchiX (ccx) bring back the taucs solver with the new metis.
For Calculix GraphiX (cgx) drop patches that were upstreamed.

Release notes:  http://www.dhondt.de/new_calc.htm

Approved by:	thierry (mentor)
2019-12-30 14:36:21 +00:00

28 lines
538 B
C

--- CalculiX.h.orig 2019-11-25 17:54:53 UTC
+++ CalculiX.h
@@ -17,12 +17,14 @@
#include <pthread.h>
-#define Linux 1
+#include <pthread.h>
+
+#define FreeBSD 1
#define IRIX 2
#define IRIX64 3
#define HP 4
-#if ARCH == Linux
+#if ARCH == FreeBSD
#define FORTRAN(A,B) A##_ B
#elif ARCH == IRIX || ARCH == IRIX64
#define FORTRAN(A,B) A##_##B
@@ -30,7 +32,7 @@
#define FORTRAN(A,B) A##B
#endif
-#if ARCH == Linux
+#if ARCH == FreeBSD
#define CEE(A,B) A##_ B
#elif ARCH == IRIX || ARCH == IRIX64
#define CEE(A,B) A##_##B