[libdazzle: 3/7] build: make math constants available




commit 1666a2ba71817881da0d1dff50361b04f6e28525
Author: Tom Schoonjans <Tom Schoonjans rfi ac uk>
Date:   Sun Jun 27 06:49:43 2021 +0100

    build: make math constants available

 src/graphing/dzl-graph-line-renderer.c | 1 +
 src/util/dzl-pango.c                   | 1 +
 src/widgets/dzl-column-layout.c        | 1 +
 src/widgets/dzl-progress-icon.c        | 1 +
 src/widgets/dzl-three-grid.c           | 1 +
 5 files changed, 5 insertions(+)
---
diff --git a/src/graphing/dzl-graph-line-renderer.c b/src/graphing/dzl-graph-line-renderer.c
index 3da778b..079b142 100644
--- a/src/graphing/dzl-graph-line-renderer.c
+++ b/src/graphing/dzl-graph-line-renderer.c
@@ -19,6 +19,7 @@
 #include "config.h"
 
 #include <glib/gi18n.h>
+#define _USE_MATH_DEFINES
 #include <math.h>
 
 #include "dzl-graph-line-renderer.h"
diff --git a/src/util/dzl-pango.c b/src/util/dzl-pango.c
index 05414c1..dfaa361 100644
--- a/src/util/dzl-pango.c
+++ b/src/util/dzl-pango.c
@@ -22,6 +22,7 @@
 
 #include <gdk/gdk.h>
 #include <glib/gstdio.h>
+#define _USE_MATH_DEFINES
 #include <math.h>
 
 #include "util/dzl-pango.h"
diff --git a/src/widgets/dzl-column-layout.c b/src/widgets/dzl-column-layout.c
index 37f1409..6ef47af 100644
--- a/src/widgets/dzl-column-layout.c
+++ b/src/widgets/dzl-column-layout.c
@@ -18,6 +18,7 @@
 
 #include "config.h"
 
+#define _USE_MATH_DEFINES
 #include <math.h>
 
 #define G_LOG_DOMAIN "dzl-column-layout"
diff --git a/src/widgets/dzl-progress-icon.c b/src/widgets/dzl-progress-icon.c
index 1baf488..7458f4b 100644
--- a/src/widgets/dzl-progress-icon.c
+++ b/src/widgets/dzl-progress-icon.c
@@ -21,6 +21,7 @@
 
 #include "config.h"
 
+#define _USE_MATH_DEFINES
 #include <math.h>
 
 #include "dzl-progress-icon.h"
diff --git a/src/widgets/dzl-three-grid.c b/src/widgets/dzl-three-grid.c
index d38eb8f..52507a5 100644
--- a/src/widgets/dzl-three-grid.c
+++ b/src/widgets/dzl-three-grid.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#define _USE_MATH_DEFINES
 #include <math.h>
 
 #include "util/dzl-macros.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]