comparison finch/libgnt/gntwm.c @ 32076:4cc9c1ea0019

Fix gntwm.c compile on some platforms. Fixes #14250
author Ethan Blanton <elb@pidgin.im>
date Mon, 06 Jun 2011 16:25:21 +0000
parents a8cc50c2279f
children 14787acaf9d7
comparison
equal deleted inserted replaced
32075:ce9ad581caa7 32076:4cc9c1ea0019
22 22
23 #include "config.h" 23 #include "config.h"
24 24
25 #ifdef USE_PYTHON 25 #ifdef USE_PYTHON
26 #include <Python.h> 26 #include <Python.h>
27 #else 27 #endif
28
29 /* Python.h may define _GNU_SOURCE and _XOPEN_SOURCE_EXTENDED, so protect
30 * these checks with #ifndef/!defined() */
31 #ifndef _GNU_SOURCE
28 #define _GNU_SOURCE 32 #define _GNU_SOURCE
29 #if (defined(__APPLE__) || defined(__unix__)) && !defined(__FreeBSD__) && !defined(__OpenBSD__) 33 #endif
34
35 #if !defined _XOPEN_SOURCE_EXTENDED && (defined(__APPLE__) || defined(__unix__)) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
30 #define _XOPEN_SOURCE_EXTENDED 36 #define _XOPEN_SOURCE_EXTENDED
31 #endif
32 #endif 37 #endif
33 38
34 #include <glib.h> 39 #include <glib.h>
35 #if GLIB_CHECK_VERSION(2,6,0) 40 #if GLIB_CHECK_VERSION(2,6,0)
36 # include <glib/gstdio.h> 41 # include <glib/gstdio.h>