[gnome-photos/gnome-3-38] utils: Avoid a potential build failure due to undefined M_PI constant



commit 9b4ab3d93844769d3375882367fc7930d1203488
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.
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/148

 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]