r22436 - gnucash/branches/2.4/src - Fix redefinition of M_PI error

John Ralls jralls at code.gnucash.org
Tue Oct 9 18:52:48 EDT 2012


Author: jralls
Date: 2012-10-09 18:52:48 -0400 (Tue, 09 Oct 2012)
New Revision: 22436
Trac: http://svn.gnucash.org/trac/changeset/22436

Modified:
   gnucash/branches/2.4/src/gnome-utils/dialog-account.c
   gnucash/branches/2.4/src/gnome/druid-loan.c
Log:
Fix redefinition of M_PI error

The redefinition is in math.h after libart_gpl/art_misc.h defines it
protected by ifndef, so math.h needs to be included first. Why this has
popped up now is a mystery.

Modified: gnucash/branches/2.4/src/gnome/druid-loan.c
===================================================================
--- gnucash/branches/2.4/src/gnome/druid-loan.c	2012-10-09 22:52:38 UTC (rev 22435)
+++ gnucash/branches/2.4/src/gnome/druid-loan.c	2012-10-09 22:52:48 UTC (rev 22436)
@@ -24,11 +24,11 @@
 
 #include "config.h"
 
+#include <math.h>
 #include <gnome.h>
 #include <glib/gi18n.h>
 #include <string.h>
 #include <glade/glade.h>
-#include <math.h>
 
 #include "druid-loan.h"
 

Modified: gnucash/branches/2.4/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/branches/2.4/src/gnome-utils/dialog-account.c	2012-10-09 22:52:38 UTC (rev 22435)
+++ gnucash/branches/2.4/src/gnome-utils/dialog-account.c	2012-10-09 22:52:48 UTC (rev 22436)
@@ -24,9 +24,9 @@
 
 #include "config.h"
 
+#include <math.h>
 #include <gnome.h>
 #include <glib/gi18n.h>
-#include <math.h>
 #ifdef G_OS_WIN32
 #include <pow.h>
 #endif



More information about the gnucash-changes mailing list