summaryrefslogtreecommitdiff
path: root/math/geogram/files/patch-src_lib_geogram_basic_common.h
blob: 42f4cf8c2adcb93bc4063fcf039ba4694fb35798 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- src/lib/geogram/basic/common.h.orig	2024-06-14 05:04:18 UTC
+++ src/lib/geogram/basic/common.h
@@ -216,6 +216,35 @@ namespace GEO {
 #  define GEO_ARCH_32
 #endif
 
+// =============================== FreeBSD defines =========================
+
+#elif defined(__FreeBSD__)
+
+#define GEO_OS_FREEBSD
+#define GEO_OS_UNIX
+
+#if defined(_OPENMP)
+#  define GEO_OPENMP
+#endif
+
+#if defined(__INTEL_COMPILER)
+#  define GEO_COMPILER_INTEL
+#elif defined(__clang__)
+#  define GEO_COMPILER_CLANG
+#elif defined(__GNUC__)
+#  define GEO_COMPILER_GCC
+#else
+#  error "Unsupported compiler"
+#endif
+
+// The following works on GCC and ICC
+#if defined(__x86_64)
+#  define GEO_ARCH_64
+#else
+#  define GEO_ARCH_32
+#endif
+
+
 // =============================== WINDOWS defines =========================
 
 #elif defined(_WIN32) || defined(_WIN64)