Files
LibreELEC.tv/packages/addons/service/hyperion/patches/hyperion-0002-fix-isnan-member-std.patch
Peter Vicman 25e8af4e2f hyperion: fix compile error
error: '__builtin_isnan' is not a member of 'std'
2016-06-30 15:27:32 +02:00

31 lines
929 B
Diff

From f826ee510c520eec364b04d7d4f6193dff334aa2 Mon Sep 17 00:00:00 2001
From: Peter Vicman <peter.vicman@gmail.com>
Date: Thu, 30 Jun 2016 15:21:18 +0200
Subject: [PATCH] Fix compile error
error: '__builtin_isnan' is not a member of 'std'
---
libsrc/leddevice/LedDevicePhilipsHue.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libsrc/leddevice/LedDevicePhilipsHue.cpp b/libsrc/leddevice/LedDevicePhilipsHue.cpp
index fe9e359..5838534 100755
--- a/libsrc/leddevice/LedDevicePhilipsHue.cpp
+++ b/libsrc/leddevice/LedDevicePhilipsHue.cpp
@@ -105,10 +105,10 @@ CiColor PhilipsHueLight::rgbToCiColor(float red, float green, float blue) {
// Convert to x,y space.
float cx = X / (X + Y + Z);
float cy = Y / (X + Y + Z);
- if (std::isnan(cx)) {
+ if (isnan(cx)) {
cx = 0.0f;
}
- if (std::isnan(cy)) {
+ if (isnan(cy)) {
cy = 0.0f;
}
// Brightness is simply Y in the XYZ space.
--
2.7.1