diff options
author | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-01 23:36:32 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-01 23:36:32 +0000 |
commit | 7433badf8e0810c870281eeb9a758face2fbfb71 (patch) | |
tree | 20ff66c4db0d7b1cf0fd9520e941f47a51e1276a /gdk/gdkimage.c | |
parent | 385108e0dee634a08ed6de5703c43e2aaafd80df (diff) | |
download | gtk+-7433badf8e0810c870281eeb9a758face2fbfb71.tar.gz |
Check for features.h.
* configure.in, config.h.in:
Check for features.h.
* gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
Fixed bug in linked list append logic by replacing hand-coded
logic with a call to g_list_append. Bug found by tml.
* gdk/gdkimage.c:
'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
in sys/ipc.h, including one specific admonishment to use
_SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
included features.h if present to obtain the necessary
side-effects.
* gtk/gtkclist.c, gtk/gtkeditable.c:
Eliminates comma-after-final-element warnings.
* gtk/gtkfontsel.c (gtk_font_selection_init):
Fixed bug where an intl string was declared as _("x") in
local var initializer.
Diffstat (limited to 'gdk/gdkimage.c')
-rw-r--r-- | gdk/gdkimage.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdk/gdkimage.c b/gdk/gdkimage.c index 5d48182d93..81bfb7648f 100644 --- a/gdk/gdkimage.c +++ b/gdk/gdkimage.c @@ -16,7 +16,18 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ -#include "config.h" +#include <config.h> + +/* gcc -ansi -pedantic on GNU/Linux causes warnings and errors + * unless this is defined: + * warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE" + */ +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 1 +#endif +#ifdef HAVE_FEATURES_H +# include <features.h> +#endif #include <stdlib.h> #include <sys/types.h> |