Factor out #define _GNU_SOURCE from various .c files into an AC_GNU_SOURCE

check in configure.in.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14002 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-05-11 01:14:12 +00:00
parent ca2e68c145
commit b49877472e
58 changed files with 4 additions and 117 deletions

View File

@ -38,6 +38,7 @@ GNUCASH_MICRO_VERSION=`echo $GNUCASH_VERSION_STRING | [ sed -e 's/^\([^\.]*\)\.\
# 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

View File

@ -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"

View File

@ -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>

View File

@ -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>

View File

@ -24,7 +24,6 @@
* *
\********************************************************************/
#define _GNU_SOURCE
#define __EXTENSIONS__
#include "config.h"

View File

@ -22,8 +22,6 @@
* *
*******************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,8 +21,6 @@
* *
\********************************************************************/
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

View File

@ -24,7 +24,6 @@
#include "config.h"
#define _GNU_SOURCE
#include <glib.h>
#include <stdarg.h>
#include <stdio.h>

View File

@ -22,7 +22,6 @@
* *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -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

View File

@ -21,8 +21,6 @@
* *
*******************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include "qofmath128.h"

View File

@ -26,8 +26,6 @@
@author Copyright (C) 2004 Linas Vepstas <linas@linas.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include <stdlib.h> /* for working atoll */

View File

@ -28,8 +28,6 @@
* restoring data to/from an ordinary Unix filesystem file.
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -23,7 +23,6 @@
#include "config.h"
#define _GNU_SOURCE
#define __EXTENSIONS__
#include <glib.h>

View File

@ -23,7 +23,6 @@
#include "config.h"
#define _GNU_SOURCE
#define __EXTENSIONS__
#include <ctype.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -37,8 +37,6 @@
*/
#include "config.h"
#define _GNU_SOURCE
#include <glib.h>
#include <string.h>

View File

@ -34,8 +34,6 @@
*/
#include "config.h"
#define _GNU_SOURCE
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -29,8 +29,6 @@
*/
#include "config.h"
#define _GNU_SOURCE
#include <glib.h>
#include <string.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <libpq-fe.h>

View File

@ -35,7 +35,6 @@
* Linas Vepstas January 2001
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -31,8 +31,6 @@
* Copyright (c) 2001 Linas Vepstas
*/
#define _GNU_SOURCE
#include "config.h"
#include <stdlib.h>
#include <string.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -20,9 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -19,9 +19,6 @@
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,7 +21,6 @@
* *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <errno.h>

View File

@ -23,8 +23,6 @@
* *
*******************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -21,10 +21,9 @@
* *
********************************************************************/
/* Test the qof_book_merge infrastructure. */
#include <glib.h>
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>
#include "qof.h"
#include "test-stuff.h"

View File

@ -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"

View File

@ -23,8 +23,6 @@
* *
\********************************************************************/
#define _GNU_SOURCE 1 /* necessary to get RTLD_DEFAULT on linux */
#include "config.h"
#include <gtk/gtk.h>

View File

@ -20,8 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gnome.h>

View File

@ -26,9 +26,6 @@
#ifndef _DIALOG_CHART_EXPORT_H
#define _DIALOG_CHART_EXPORT_H
#define _GNU_SOURCE
/** @addtogroup Import_Export
@{
*/

View File

@ -20,8 +20,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -25,8 +25,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -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>

View File

@ -28,8 +28,6 @@
* Huntington Beach, CA 92648-4632 *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gnome.h>

View File

@ -23,8 +23,6 @@
* \brief A very generic and flexible account matcher/picker
\author Copyright (C) 2002 Benoit Grégoire <bock@step.polymtl.ca>
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -25,8 +25,6 @@
@author Christian Stimming
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -23,8 +23,6 @@
@brief A Generic commodity matcher/picker
@author Copyright (C) 2002 Benoit Grégoire <bock@step.polymtl.ca>
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -25,8 +25,6 @@
@author Copyright (C) 2002 Benoit Grégoire
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -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>

View File

@ -23,8 +23,6 @@
@brief Utility functions for writing import modules.
@author Copyright (C) 2002 Benoit Grégoire <bock@step.polymtl.ca>
*/
#define _GNU_SOURCE
#include "config.h"

View File

@ -23,8 +23,6 @@
@brief .log file replay code
@author Copyright (c) 2003 Benoit Grégoire <bock@step.polymtl.ca>
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -23,8 +23,6 @@
@brief MT940 import module code
@author Copyright (c) 2002 Benoit Grégoire <bock@step.polymtl.ca>, Copyright (c) 2003 Jan-Pascal van Best <janpascal@vanbest.org>, Copyright (c) 2006 Florian Steinel, 2006 Christian Stimming.
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>

View File

@ -23,8 +23,6 @@
@brief Ofx import module code
@author Copyright (c) 2002 Benoit Grégoire <bock@step.polymtl.ca>
*/
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>

View File

@ -21,8 +21,6 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#define _GNU_SOURCE
#include "config.h"
#include <gnome.h>

View File

@ -22,8 +22,6 @@
* author Copyright (c) 1998-2000 Linas Vepstas <linas@linas.org>
* author Copyright (c) 2000-2001 Dave Peticolas <dave@krondo.com>
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>