From 25e8af4e2f027d047d6dde93fb06b43615382a10 Mon Sep 17 00:00:00 2001 From: Peter Vicman Date: Thu, 30 Jun 2016 15:27:32 +0200 Subject: [PATCH] hyperion: fix compile error error: '__builtin_isnan' is not a member of 'std' --- .../hyperion-0002-fix-isnan-member-std.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/addons/service/hyperion/patches/hyperion-0002-fix-isnan-member-std.patch diff --git a/packages/addons/service/hyperion/patches/hyperion-0002-fix-isnan-member-std.patch b/packages/addons/service/hyperion/patches/hyperion-0002-fix-isnan-member-std.patch new file mode 100644 index 0000000000..ce608b6f84 --- /dev/null +++ b/packages/addons/service/hyperion/patches/hyperion-0002-fix-isnan-member-std.patch @@ -0,0 +1,30 @@ +From f826ee510c520eec364b04d7d4f6193dff334aa2 Mon Sep 17 00:00:00 2001 +From: Peter Vicman +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 +