summaryrefslogtreecommitdiffstats
path: root/kde/patch/kholidays/kholidays_isnan.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-07-31 16:13:18 +0200
committer Eric Hameleers <alien@slackware.com>2020-07-31 16:13:18 +0200
commit703149752c6265b36973d2c1f0f5a69721e3128a (patch)
tree7ded0d801771d5705f48ffbfb48f37dd4829439e /kde/patch/kholidays/kholidays_isnan.patch
parentdd005500c624d127321ff3fe14a0c29bfa8d67f7 (diff)
parentcd7ff1719433fbb3b6a8304596be173bc1b91b00 (diff)
downloadktown-master.tar.gz
ktown-master.tar.xz
Merge branch 'elogind'HEADmaster
Diffstat (limited to 'kde/patch/kholidays/kholidays_isnan.patch')
-rw-r--r--kde/patch/kholidays/kholidays_isnan.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/kde/patch/kholidays/kholidays_isnan.patch b/kde/patch/kholidays/kholidays_isnan.patch
deleted file mode 100644
index 55e79aa..0000000
--- a/kde/patch/kholidays/kholidays_isnan.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From: Milian Wolff <milian.wolff@kdab.com>
-Date: Mon, 07 Mar 2016 09:58:37 +0000
-Subject: Fix compile with clang: isnan is in the std namespace when including cmath.
-X-Git-Url: http://quickgit.kde.org/?p=kholidays.git&a=commitdiff&h=488aa158f7a0a99604a13a897a11388c02f8d39e
----
-Fix compile with clang: isnan is in the std namespace when including cmath.
----
-
-
---- a/src/sunriseset.cpp
-+++ b/src/sunriseset.cpp
-@@ -180,7 +180,7 @@
- double hourAngle = calcHourAngleSunrise(latitude, solarDec);
- double delta = longitude + radToDeg(hourAngle);
- QTime timeUTC(0, 0);
-- if (isnan(delta))
-+ if (std::isnan(delta))
- return timeUTC;
- timeUTC = timeUTC.addSecs((720 - (4.0 * delta) - eqTime) * 60);
- return QTime(timeUTC.hour(),
-@@ -199,7 +199,7 @@
- double hourAngle = -calcHourAngleSunrise(latitude, solarDec);
- double delta = longitude + radToDeg(hourAngle);
- QTime timeUTC(0, 0);
-- if (isnan(delta))
-+ if (std::isnan(delta))
- return timeUTC;
- timeUTC = timeUTC.addSecs((720 - (4.0 * delta) - eqTime) * 60);
- return QTime(timeUTC.hour(),
-