[libpeas/proxys: 6/25] Circumvent a warning due to _POSIX_C_SOURCE being defined twice.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas/proxys: 6/25] Circumvent a warning due to _POSIX_C_SOURCE being defined twice.
- Date: Sun, 23 May 2010 13:59:47 +0000 (UTC)
commit a5609b2c5becb757956d7a2764d198992241dec1
Author: Steve Frécinaux <code istique net>
Date: Tue May 18 08:13:34 2010 +0200
Circumvent a warning due to _POSIX_C_SOURCE being defined twice.
The solution is ugly but fixes the warning for now...
loaders/python/peas-plugin-loader-python.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/loaders/python/peas-plugin-loader-python.c b/loaders/python/peas-plugin-loader-python.c
index c0490f0..5c9beb2 100644
--- a/loaders/python/peas-plugin-loader-python.c
+++ b/loaders/python/peas-plugin-loader-python.c
@@ -27,6 +27,9 @@
#define NO_IMPORT_PYGTK
#endif
+/* _POSIX_C_SOURCE is defined in Python.h and in limits.h included by
+ * glib-object.h, so we unset it here to avoid a warning. Yep, that's bad. */
+#undef _POSIX_C_SOURCE
#include <Python.h>
#include <pygobject.h>
#include <signal.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]