[gnome-clocks] Use gboolean instead of stdbool
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Use gboolean instead of stdbool
- Date: Mon, 13 Apr 2020 22:43:26 +0000 (UTC)
commit 63f6e980b58196dea31d8b5a3486a1544211000b
Author: Manuel Genovés <manuel genoves gmail com>
Date: Mon Apr 13 19:35:37 2020 +0200
Use gboolean instead of stdbool
Signed-off-by: Manuel Genovés <manuel genoves gmail com>
src/twilight.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/twilight.c b/src/twilight.c
index 2ad4840..baf9cac 100644
--- a/src/twilight.c
+++ b/src/twilight.c
@@ -17,7 +17,6 @@
* Zander Brown <zbrown gnome org>
*/
-#include <stdbool.h>
#include <math.h>
#include <glib.h>
@@ -75,7 +74,7 @@ is_in_north_winter (int month)
*
* Since: 3.36
*/
-bool
+gboolean
calculate_sunrise_sunset (double lat,
double lon,
int year,
@@ -91,7 +90,7 @@ calculate_sunrise_sunset (double lat,
double sunrise_minute;
double sunset_hour;
double sunset_minute;
- bool calculatable = TRUE;
+ gboolean calculatable = TRUE;
// first we calculate our current Julian date
int julian_day_number = ((1461 * (year + 4800 + (month - 14) / 12)) / 4 +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]