summarylogtreecommitdiffstats
path: root/0008-clang-isnan-isinf.patch
blob: 52b53615ba7394d4d105f28988a0842cc5cb9782 (plain)
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
From 816c122471a1d0000a4059ca43142431e63eb755 Mon Sep 17 00:00:00 2001
From: howetuft <howetuft@gmail.com>
Date: Sat, 21 May 2022 18:18:23 +0200
Subject: [PATCH 08/14] clang-isnan-isinf

---
 include/luxrays/utils/utils.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/luxrays/utils/utils.h b/include/luxrays/utils/utils.h
index b6584b383..d48d7d93d 100644
--- a/include/luxrays/utils/utils.h
+++ b/include/luxrays/utils/utils.h
@@ -48,6 +48,11 @@ template <class T>
 int isinf(T a) { return std::isinf(a); }
 #endif
 
+#ifdef __clang__
+using std::isnan;
+using std::isinf;
+#endif
+
 #if defined(__APPLE__)
 #include <string>
 #endif
-- 
2.43.0