[Gnucash-changes] r14002 - gnucash/trunk - Factor out #define _GNU_SOURCE from various .c files into an AC_GNU_SOURCE

Chris Shoemaker chris at cvs.gnucash.org
Wed May 10 21:14:14 EDT 2006


Author: chris
Date: 2006-05-10 21:14:12 -0400 (Wed, 10 May 2006)
New Revision: 14002
Trac: http://svn.gnucash.org/trac/changeset/14002

Modified:
   gnucash/trunk/configure.in
   gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
   gnucash/trunk/lib/libqof/backend/file/qsf-xml-map.c
   gnucash/trunk/lib/libqof/backend/file/qsf-xml.c
   gnucash/trunk/lib/libqof/qof/gnc-date.c
   gnucash/trunk/lib/libqof/qof/gnc-numeric.c
   gnucash/trunk/lib/libqof/qof/guid.c
   gnucash/trunk/lib/libqof/qof/kvp_frame.c
   gnucash/trunk/lib/libqof/qof/qofbackend.c
   gnucash/trunk/lib/libqof/qof/qofbookmerge.h
   gnucash/trunk/lib/libqof/qof/qofmath128.c
   gnucash/trunk/lib/libqof/qof/qofsql.c
   gnucash/trunk/src/backend/file/gnc-backend-file.c
   gnucash/trunk/src/backend/file/sixtp-dom-generators.c
   gnucash/trunk/src/backend/file/sixtp-utils.c
   gnucash/trunk/src/backend/postgres/PostgresBackend.c
   gnucash/trunk/src/backend/postgres/account.c
   gnucash/trunk/src/backend/postgres/book.c
   gnucash/trunk/src/backend/postgres/builder.c
   gnucash/trunk/src/backend/postgres/checkpoint.c
   gnucash/trunk/src/backend/postgres/escape.c
   gnucash/trunk/src/backend/postgres/events.c
   gnucash/trunk/src/backend/postgres/gncquery.c
   gnucash/trunk/src/backend/postgres/kvp-sql.c
   gnucash/trunk/src/backend/postgres/price.c
   gnucash/trunk/src/backend/postgres/txn.c
   gnucash/trunk/src/backend/postgres/txnmass.c
   gnucash/trunk/src/backend/postgres/upgrade.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedger.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerLayout.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerModel.c
   gnucash/trunk/src/engine/TransLog.c
   gnucash/trunk/src/engine/gnc-commodity.c
   gnucash/trunk/src/engine/test/test-book-merge.c
   gnucash/trunk/src/engine/test/test-recursive.c
   gnucash/trunk/src/gnome-utils/dialog-utils.c
   gnucash/trunk/src/gnome-utils/print-session.c
   gnucash/trunk/src/gnome/dialog-chart-export.h
   gnucash/trunk/src/gnome/dialog-find-transactions.c
   gnucash/trunk/src/gnome/dialog-print-check.c
   gnucash/trunk/src/gnome/gnc-split-reg.c
   gnucash/trunk/src/gnome/lot-viewer.c
   gnucash/trunk/src/gnome/window-reconcile.c
   gnucash/trunk/src/import-export/binary-import/druid-commodity.c
   gnucash/trunk/src/import-export/import-account-matcher.c
   gnucash/trunk/src/import-export/import-backend.c
   gnucash/trunk/src/import-export/import-commodity-matcher.c
   gnucash/trunk/src/import-export/import-match-picker.c
   gnucash/trunk/src/import-export/import-settings.c
   gnucash/trunk/src/import-export/import-utilities.c
   gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
   gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c
   gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
   gnucash/trunk/src/import-export/qif-import/druid-qif-import.c
   gnucash/trunk/src/register/ledger-core/split-register.c
Log:
   Factor out #define _GNU_SOURCE from various .c files into an AC_GNU_SOURCE
   check in configure.in.


Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/configure.in	2006-05-11 01:14:12 UTC (rev 14002)
@@ -38,6 +38,7 @@
 # Check for gcc and intltool (somehow breaks the suggested content
 # order, doesn't it? Whatever.)
 AC_PROG_CC
+AC_GNU_SOURCE
 AC_PROG_INTLTOOL
 
 AM_GCONF_SOURCE_2

Modified: gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
===================================================================
--- gnucash/trunk/lib/libqof/backend/file/qsf-backend.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/backend/file/qsf-backend.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 #include <glib.h>
 #include "qof.h"

Modified: gnucash/trunk/lib/libqof/backend/file/qsf-xml-map.c
===================================================================
--- gnucash/trunk/lib/libqof/backend/file/qsf-xml-map.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/backend/file/qsf-xml-map.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 #include <glib.h>
 #include <libxml/xmlversion.h>

Modified: gnucash/trunk/lib/libqof/backend/file/qsf-xml.c
===================================================================
--- gnucash/trunk/lib/libqof/backend/file/qsf-xml.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/backend/file/qsf-xml.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 #include <glib.h>
 #include <libxml/xmlversion.h>

Modified: gnucash/trunk/lib/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-date.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/gnc-date.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -24,7 +24,6 @@
  *                                                                  *
 \********************************************************************/
 
-#define _GNU_SOURCE
 #define __EXTENSIONS__
 
 #include "config.h"

Modified: gnucash/trunk/lib/libqof/qof/gnc-numeric.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-numeric.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/gnc-numeric.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -22,8 +22,6 @@
  *                                                                  *
  *******************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/lib/libqof/qof/guid.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/guid.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/guid.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  *                                                                  *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif

Modified: gnucash/trunk/lib/libqof/qof/kvp_frame.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/kvp_frame.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/kvp_frame.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -24,7 +24,6 @@
 
 #include "config.h"
 
-#define _GNU_SOURCE
 #include <glib.h>
 #include <stdarg.h>
 #include <stdio.h>

Modified: gnucash/trunk/lib/libqof/qof/qofbackend.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofbackend.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/qofbackend.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -22,7 +22,6 @@
  *                                                                  *
 \********************************************************************/
 
-#define _GNU_SOURCE
 #include "config.h"
 #include <stdio.h>
 #include <stdlib.h>

Modified: gnucash/trunk/lib/libqof/qof/qofbookmerge.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofbookmerge.h	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/qofbookmerge.h	2006-05-11 01:14:12 UTC (rev 14002)
@@ -24,9 +24,6 @@
 #ifndef QOFBOOKMERGE_H
 #define QOFBOOKMERGE_H
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #define QOF_MOD_MERGE "qof-merge"
 
 /** @addtogroup BookMerge

Modified: gnucash/trunk/lib/libqof/qof/qofmath128.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofmath128.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/qofmath128.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  *                                                                  *
  *******************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 #include "qofmath128.h"
 

Modified: gnucash/trunk/lib/libqof/qof/qofsql.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofsql.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/lib/libqof/qof/qofsql.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -26,8 +26,6 @@
     @author Copyright (C) 2004 Linas Vepstas <linas at linas.org>
 
 */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <stdlib.h>   /* for working atoll */

Modified: gnucash/trunk/src/backend/file/gnc-backend-file.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-backend-file.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/file/gnc-backend-file.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -28,8 +28,6 @@
  * restoring data to/from an ordinary Unix filesystem file.
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/file/sixtp-dom-generators.c
===================================================================
--- gnucash/trunk/src/backend/file/sixtp-dom-generators.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/file/sixtp-dom-generators.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,7 +23,6 @@
 
 #include "config.h"
 
-#define _GNU_SOURCE
 #define __EXTENSIONS__
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/file/sixtp-utils.c
===================================================================
--- gnucash/trunk/src/backend/file/sixtp-utils.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/file/sixtp-utils.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,7 +23,6 @@
 
 #include "config.h"
 
-#define _GNU_SOURCE
 #define __EXTENSIONS__
 
 #include <ctype.h>

Modified: gnucash/trunk/src/backend/postgres/PostgresBackend.c
===================================================================
--- gnucash/trunk/src/backend/postgres/PostgresBackend.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/PostgresBackend.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/account.c
===================================================================
--- gnucash/trunk/src/backend/postgres/account.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/account.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/book.c
===================================================================
--- gnucash/trunk/src/backend/postgres/book.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/book.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/builder.c
===================================================================
--- gnucash/trunk/src/backend/postgres/builder.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/builder.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -37,8 +37,6 @@
  */
 
 #include "config.h"
-
-#define _GNU_SOURCE
 #include <glib.h>
 #include <string.h>
 

Modified: gnucash/trunk/src/backend/postgres/checkpoint.c
===================================================================
--- gnucash/trunk/src/backend/postgres/checkpoint.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/checkpoint.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -34,8 +34,6 @@
  */
 
 #include "config.h"
-
-#define _GNU_SOURCE
 #include <glib.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: gnucash/trunk/src/backend/postgres/escape.c
===================================================================
--- gnucash/trunk/src/backend/postgres/escape.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/escape.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -29,8 +29,6 @@
  */
 
 #include "config.h"
-
-#define _GNU_SOURCE
 #include <glib.h>
 #include <string.h>
 

Modified: gnucash/trunk/src/backend/postgres/events.c
===================================================================
--- gnucash/trunk/src/backend/postgres/events.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/events.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <libpq-fe.h>  

Modified: gnucash/trunk/src/backend/postgres/gncquery.c
===================================================================
--- gnucash/trunk/src/backend/postgres/gncquery.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/gncquery.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -35,7 +35,6 @@
  * Linas Vepstas January 2001
  */
 
-#define _GNU_SOURCE
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/kvp-sql.c
===================================================================
--- gnucash/trunk/src/backend/postgres/kvp-sql.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/kvp-sql.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -31,8 +31,6 @@
  * Copyright (c) 2001 Linas Vepstas
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 #include <stdlib.h>
 #include <string.h>

Modified: gnucash/trunk/src/backend/postgres/price.c
===================================================================
--- gnucash/trunk/src/backend/postgres/price.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/price.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/txn.c
===================================================================
--- gnucash/trunk/src/backend/postgres/txn.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/txn.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/txnmass.c
===================================================================
--- gnucash/trunk/src/backend/postgres/txnmass.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/txnmass.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,9 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/backend/postgres/upgrade.c
===================================================================
--- gnucash/trunk/src/backend/postgres/upgrade.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/backend/postgres/upgrade.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -19,10 +19,7 @@
  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
-		  
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedger.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedger.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedger.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerControl.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerDisplay.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerLayout.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerLayout.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerLayout.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerModel.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerModel.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerModel.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/engine/TransLog.c
===================================================================
--- gnucash/trunk/src/engine/TransLog.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/engine/TransLog.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,7 +21,6 @@
  *                                                                  *
 \********************************************************************/
 
-#define _GNU_SOURCE
 #include "config.h"
 
 #include <errno.h>

Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/engine/gnc-commodity.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
  *                                                                  *
  *******************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/engine/test/test-book-merge.c
===================================================================
--- gnucash/trunk/src/engine/test/test-book-merge.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/engine/test/test-book-merge.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,11 +21,10 @@
  *                                                                   *
  ********************************************************************/
  /* Test the qof_book_merge infrastructure. */
- 
+
+#include "config.h" 
 #include <glib.h>
 
-#define _GNU_SOURCE
-
 #include "qof.h"
 #include "test-stuff.h"
 #include "gnc-engine.h"

Modified: gnucash/trunk/src/engine/test/test-recursive.c
===================================================================
--- gnucash/trunk/src/engine/test/test-recursive.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/engine/test/test-recursive.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -22,9 +22,9 @@
  *  Boston, MA  02110-1301,  USA 
  */
 
+#include "config.h"
 #include <glib.h>
 #include <glib/gprintf.h>
-#define _GNU_SOURCE
 
 #include "qof.h"
 #include "test-engine-stuff.h"

Modified: gnucash/trunk/src/gnome/dialog-chart-export.h
===================================================================
--- gnucash/trunk/src/gnome/dialog-chart-export.h	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome/dialog-chart-export.h	2006-05-11 01:14:12 UTC (rev 14002)
@@ -26,9 +26,6 @@
 #ifndef _DIALOG_CHART_EXPORT_H
 #define _DIALOG_CHART_EXPORT_H
 
-#define _GNU_SOURCE
-
-
 /** @addtogroup Import_Export
 	@{
 */

Modified: gnucash/trunk/src/gnome/dialog-find-transactions.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-find-transactions.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome/dialog-find-transactions.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,8 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/gnome/dialog-print-check.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-print-check.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome/dialog-print-check.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/gnome/gnc-split-reg.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-split-reg.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome/gnc-split-reg.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -25,8 +25,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/gnome/lot-viewer.c
===================================================================
--- gnucash/trunk/src/gnome/lot-viewer.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome/lot-viewer.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -35,8 +35,6 @@
  * XXX clist should be probably be removed and replaced by the gnc_query_list
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome/window-reconcile.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -28,8 +28,6 @@
  *           Huntington Beach, CA 92648-4632                        *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
  *                                                                  *
 \********************************************************************/
 
-#define _GNU_SOURCE 1  /* necessary to get RTLD_DEFAULT on linux */
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/gnome-utils/print-session.c
===================================================================
--- gnucash/trunk/src/gnome-utils/print-session.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/gnome-utils/print-session.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -20,8 +20,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gnome.h>

Modified: gnucash/trunk/src/import-export/binary-import/druid-commodity.c
===================================================================
--- gnucash/trunk/src/import-export/binary-import/druid-commodity.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/binary-import/druid-commodity.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
  ********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gnome.h>

Modified: gnucash/trunk/src/import-export/import-account-matcher.c
===================================================================
--- gnucash/trunk/src/import-export/import-account-matcher.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/import-account-matcher.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
  * \brief A very generic and flexible account matcher/picker
  \author Copyright (C) 2002 Benoit Grégoire <bock at step.polymtl.ca>
  */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/import-export/import-backend.c
===================================================================
--- gnucash/trunk/src/import-export/import-backend.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/import-backend.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -25,8 +25,6 @@
     @author Christian Stimming
 */
  
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/import-export/import-commodity-matcher.c
===================================================================
--- gnucash/trunk/src/import-export/import-commodity-matcher.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/import-commodity-matcher.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
   @brief  A Generic commodity matcher/picker
   @author Copyright (C) 2002 Benoit Grégoire <bock at step.polymtl.ca>    
  */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/import-export/import-match-picker.c
===================================================================
--- gnucash/trunk/src/import-export/import-match-picker.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/import-match-picker.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -25,8 +25,6 @@
    @author Copyright (C) 2002 Benoit Grégoire
 */
  
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/import-export/import-settings.c
===================================================================
--- gnucash/trunk/src/import-export/import-settings.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/import-settings.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -24,8 +24,6 @@
    transaction matching (for both the gui and the backend)
    @author Copyright (C) 2002 Benoit Grégoire
 */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/import-export/import-utilities.c
===================================================================
--- gnucash/trunk/src/import-export/import-utilities.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/import-utilities.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
     @brief Utility functions for writing import modules.
     @author Copyright (C) 2002 Benoit Grégoire <bock at step.polymtl.ca>
 */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 

Modified: gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
===================================================================
--- gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
     @brief .log file replay code
     @author Copyright (c) 2003 Benoit Grégoire <bock at step.polymtl.ca>
 */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c
===================================================================
--- gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
      @brief MT940 import module code
      @author Copyright (c) 2002 Benoit Grégoire <bock at step.polymtl.ca>, Copyright (c) 2003 Jan-Pascal van Best <janpascal at vanbest.org>, Copyright (c) 2006 Florian Steinel, 2006 Christian Stimming.
  */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>

Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -23,8 +23,6 @@
      @brief Ofx import module code
      @author Copyright (c) 2002 Benoit Grégoire <bock at step.polymtl.ca>
  */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gtk/gtk.h>

Modified: gnucash/trunk/src/import-export/qif-import/druid-qif-import.c
===================================================================
--- gnucash/trunk/src/import-export/qif-import/druid-qif-import.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/import-export/qif-import/druid-qif-import.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -21,8 +21,6 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org                   *
 \********************************************************************/
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <gnome.h>

Modified: gnucash/trunk/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register.c	2006-05-11 01:11:36 UTC (rev 14001)
+++ gnucash/trunk/src/register/ledger-core/split-register.c	2006-05-11 01:14:12 UTC (rev 14002)
@@ -22,8 +22,6 @@
  * author Copyright (c) 1998-2000 Linas Vepstas <linas at linas.org>
  * author Copyright (c) 2000-2001 Dave Peticolas <dave at krondo.com>
  */
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <glib.h>



More information about the gnucash-changes mailing list