[gnome-photos/wip/rishi/define-m-pi] utils: Avoid a potential build failure due to undefined M_PI constant
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/define-m-pi] utils: Avoid a potential build failure due to undefined M_PI constant
- Date: Tue, 8 Sep 2020 17:24:04 +0000 (UTC)
commit 7903bcbda8b409e96f2a5cebae2799267a83d012
Author: Sam Thursfield <sam afuera me uk>
Date: Wed May 27 13:07:58 2020 +0200
utils: Avoid a potential build failure due to undefined M_PI constant
The <math.h> header needs to be included.
Previously I suppose libtracker-sparql.h pulled this in.
src/photos-utils.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/photos-utils.c b/src/photos-utils.c
index 401f52ba..21bf4e20 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -26,6 +26,8 @@
#include "config.h"
+#include <math.h>
+
#include <gdk/gdk.h>
#include <glib.h>
#include <tracker-sparql.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]