always define G_GNUC_EXTENSION, even when not needed by GLib. That's

2000-03-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib.h, configure.in, gutils.h: always define G_GNUC_EXTENSION,
	even when not needed by GLib. That's actually also the way, the
	GLib reference manual describes that macro. Therefore I had to
	remove the lonesome #include <glibconfig.h> in gutils.c, which
	doesn't seem to be needed there however. This change should make
	Ben Gertzfield <che@debian.org> happy.

	* gutils.c: Furthermore two warnings in gutils.c were voided,
	which crept in due to my last change.
This commit is contained in:
Sebastian Wilhelmi
2000-03-21 15:21:41 +00:00
committed by Sebastian Wilhelmi
parent cdb6195572
commit 66034865b1
13 changed files with 111 additions and 23 deletions

View File

@@ -32,8 +32,6 @@
#include <config.h>
#endif
#include "glibconfig.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -334,8 +332,8 @@ g_dirname (const gchar *file_name)
gchar*
g_get_current_dir (void)
{
gchar *buffer;
gchar *dir;
gchar *buffer = NULL;
gchar *dir = NULL;
static gulong max_len = (G_PATH_LENGTH == -1) ? 2048 : G_PATH_LENGTH;
/* We don't use getcwd(3) on SUNOS, because, it does a popen("pwd")