From db1ff156d5b696515c90b9b24b83792d1d9f9052 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 23 Sep 2008 18:56:31 +0000 Subject: [PATCH] #include 2008-09-23 Michael Natterer * glib/glib.h: #include * glib/gpoll.h: #error out if gpoll.h is included directly. * glib/gpoll.c: remove trailing whitespace. svn path=/trunk/; revision=7537 --- ChangeLog | 10 +++++++++- glib/glib.h | 1 + glib/gpoll.c | 10 +++++----- glib/gpoll.h | 4 +--- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1db4f8e..bc0b2f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,14 @@ +2008-09-23 Michael Natterer + + * glib/glib.h: #include + + * glib/gpoll.h: #error out if gpoll.h is included directly. + + * glib/gpoll.c: remove trailing whitespace. + 2008-09-23 Dan Winship - * glib/gpoll.c (g_poll): Move this out of gmain.c and make it part + * glib/gpoll.[ch] (g_poll): Move this out of gmain.c and make it part of the public API. (Part of Bug 505361 - gunixinputstream.c assumes poll() available.) diff --git a/glib/glib.h b/glib/glib.h index ab283a0..000d417 100644 --- a/glib/glib.h +++ b/glib/glib.h @@ -59,6 +59,7 @@ #include #include #include +#include #include #include #include diff --git a/glib/gpoll.c b/glib/gpoll.c index d26cf2f..0fc2d9e 100644 --- a/glib/gpoll.c +++ b/glib/gpoll.c @@ -25,10 +25,10 @@ * Modified by the GLib Team and others 1997-2000. See the AUTHORS * file for a list of people on the GLib Team. See the ChangeLog * files for a list of changes. These files are distributed with - * GLib at ftp://ftp.gtk.org/pub/gtk/. + * GLib at ftp://ftp.gtk.org/pub/gtk/. */ -/* +/* * MT safe */ @@ -65,7 +65,7 @@ #if defined(_POLL_EMUL_H_) || defined(BROKEN_POLL) #undef HAVE_POLL #endif - + #endif /* GLIB_HAVE_SYS_POLL_H */ #ifdef HAVE_UNISTD_H #include @@ -246,7 +246,7 @@ poll_rest (gboolean poll_msgs, } return 1; } - + return 0; } @@ -371,7 +371,7 @@ typedef long fd_mask; # endif /* !_IBMR2 */ #endif /* !NO_FD_SET */ -gint +gint g_poll (GPollFD *fds, guint nfds, gint timeout) diff --git a/glib/gpoll.h b/glib/gpoll.h index dccd832..07aa782 100644 --- a/glib/gpoll.h +++ b/glib/gpoll.h @@ -17,15 +17,13 @@ * Boston, MA 02111-1307, USA. */ -#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) +#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION) #error "Only can be included directly." #endif #ifndef __G_POLL_H__ #define __G_POLL_H__ -#include - G_BEGIN_DECLS /* Any definitions using GPollFD or GPollFunc are primarily -- 2.7.4