[glib] Remove obsolescent AC_HEADER_STDC macro
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove obsolescent AC_HEADER_STDC macro
- Date: Tue, 27 Dec 2011 20:56:03 +0000 (UTC)
commit 4576a459fc0aebc48581d16a076bd0a0924ae988
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 27 15:55:04 2011 -0500
Remove obsolescent AC_HEADER_STDC macro
We only used the resulting define in one place, and really,
these headers just have to be around or its not worth trying.
configure.ac | 3 ---
glib/tests/hash.c | 2 --
2 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 78d6d31..fb1a984 100644
--- a/configure.ac
+++ b/configure.ac
@@ -561,9 +561,6 @@ AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
CFLAGS=$glib_save_CFLAGS
AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
-# Checks for header files.
-AC_HEADER_STDC
-
# Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_ALLOCA
diff --git a/glib/tests/hash.c b/glib/tests/hash.c
index 716bfa2..492e89f 100644
--- a/glib/tests/hash.c
+++ b/glib/tests/hash.c
@@ -32,11 +32,9 @@
# include <config.h>
#endif
-#if STDC_HEADERS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#endif
#include <glib.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]