[dia/dia-0-97] Bug #585004 - implicit declaration of function 'finite'
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia/dia-0-97] Bug #585004 - implicit declaration of function 'finite'
- Date: Sat, 6 Jun 2009 13:42:51 -0400 (EDT)
commit b589512287c518a539572d9809f2ce9e62b283a6
Author: Hans Breuer <hans breuer org>
Date: Sat Jun 6 19:02:26 2009 +0200
Bug #585004 - implicit declaration of function 'finite'
To get the definition either _BSD_SOURCE or _SVID_SOURCE needs to
be defined before inclusion of <math.h>
---
lib/arrows.c | 4 +++-
lib/boundingbox.c | 6 +++++-
objects/standard/arc.c | 1 +
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/arrows.c b/lib/arrows.c
index bf9dc95..b0dc3a7 100644
--- a/lib/arrows.c
+++ b/lib/arrows.c
@@ -18,10 +18,12 @@
#include <config.h>
+#define _BSD_SOURCE 1 /* to get finite */
+#include <math.h>
#include <stdio.h>
#include <string.h>
+
#include <glib.h>
-#include <math.h>
#include "message.h"
#include "boundingbox.h"
diff --git a/lib/boundingbox.c b/lib/boundingbox.c
index 14e271a..6d2749f 100644
--- a/lib/boundingbox.c
+++ b/lib/boundingbox.c
@@ -20,9 +20,13 @@
/** \file boundingbox.c This code is nothing but a fancy pile of FPU crap. */
#include <config.h>
-#include <glib.h>
+
+#define _BSD_SOURCE 1
#include <math.h>
#include <string.h> /* memcmp() */
+
+#include <glib.h>
+
#include "geometry.h"
#include "boundingbox.h"
diff --git a/objects/standard/arc.c b/objects/standard/arc.c
index ae1b584..28302a6 100644
--- a/objects/standard/arc.c
+++ b/objects/standard/arc.c
@@ -21,6 +21,7 @@
#endif
#include <assert.h>
+#define _BSD_SOURCE 1 /* to get finite */
#include <math.h>
#include "intl.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]