[glib] Remove redudant check for direct #include gslice.h



commit b9d728474ebc51c0d4ff46cb44d97134730174fc
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Feb 21 19:39:33 2010 -0500

    Remove redudant check for direct #include gslice.h
    
    This was added before we had a standardised header check and not removed
    when the standard check was added.

 glib/gslice.c |    2 ++
 glib/gslice.h |    4 ----
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/glib/gslice.c b/glib/gslice.c
index c73884b..66fd9e5 100644
--- a/glib/gslice.c
+++ b/glib/gslice.c
@@ -20,6 +20,8 @@
 
 #include "config.h"
 
+#include "gslice.h"
+
 #if     defined HAVE_POSIX_MEMALIGN && defined POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS
 #  define HAVE_COMPLIANT_POSIX_MEMALIGN 1
 #endif
diff --git a/glib/gslice.h b/glib/gslice.h
index f9cc644..962199e 100644
--- a/glib/gslice.h
+++ b/glib/gslice.h
@@ -24,10 +24,6 @@
 #ifndef __G_SLICE_H__
 #define __G_SLICE_H__
 
-#ifndef __G_MEM_H__
-#error Include <glib.h> instead of <gslice.h>
-#endif
-
 #include <glib/gtypes.h>
 
 G_BEGIN_DECLS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]