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

