From 6b8fa181634ff157965ff6f109c174644143316a Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Sat, 16 Nov 2013 20:32:12 +0100 Subject: [PATCH 1/1] =?utf8?q?Clean=20all=20=E2=80=98=E2=80=A6=20warning:?= =?utf8?q?=20"=5FPOSIX=5FC=5FSOURCE"=20redefined=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit According documentation¹: “Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included.” ¹http://docs.python.org/2/c-api/intro.html#includes --- src/plugins/python/accounttype.h | 2 +- src/plugins/python/composewindowtype.c | 6 +++--- src/plugins/python/composewindowtype.h | 2 +- src/plugins/python/folderpropertiestype.h | 2 +- src/plugins/python/foldertype.c | 4 ++-- src/plugins/python/foldertype.h | 2 +- src/plugins/python/mailboxtype.c | 4 ++-- src/plugins/python/mailboxtype.h | 2 +- src/plugins/python/messageinfotype.c | 4 ++-- src/plugins/python/messageinfotype.h | 2 +- src/plugins/python/nodetype.c | 4 ++-- src/plugins/python/nodetype.h | 4 +--- src/plugins/python/python-hooks.c | 6 +++--- src/plugins/python/python_plugin.c | 4 ++-- 14 files changed, 23 insertions(+), 25 deletions(-) diff --git a/src/plugins/python/accounttype.h b/src/plugins/python/accounttype.h index 808faba0b..cf5da0af3 100644 --- a/src/plugins/python/accounttype.h +++ b/src/plugins/python/accounttype.h @@ -18,8 +18,8 @@ #ifndef ACCOUNTTYPE_H #define ACCOUNTTYPE_H -#include #include +#include #include "account.h" diff --git a/src/plugins/python/composewindowtype.c b/src/plugins/python/composewindowtype.c index bf5b0a6c9..65ba8643d 100644 --- a/src/plugins/python/composewindowtype.c +++ b/src/plugins/python/composewindowtype.c @@ -20,9 +20,6 @@ # include "claws-features.h" #endif -#include -#include - #include "composewindowtype.h" #include "accounttype.h" @@ -34,6 +31,9 @@ #include "account.h" #include "summaryview.h" +#include +#include + #include #include diff --git a/src/plugins/python/composewindowtype.h b/src/plugins/python/composewindowtype.h index 9de8546df..14ddc2604 100644 --- a/src/plugins/python/composewindowtype.h +++ b/src/plugins/python/composewindowtype.h @@ -18,8 +18,8 @@ #ifndef COMPOSEWINDOWTYPE_H #define COMPOSEWINDOWTYPE_H -#include #include +#include #include "compose.h" diff --git a/src/plugins/python/folderpropertiestype.h b/src/plugins/python/folderpropertiestype.h index 3330c3df2..752f0827b 100644 --- a/src/plugins/python/folderpropertiestype.h +++ b/src/plugins/python/folderpropertiestype.h @@ -18,8 +18,8 @@ #ifndef FOLDERPROPERTIESTYPE_H #define FOLDERPROPERTIESTYPE_H -#include #include +#include #include "folder_item_prefs.h" diff --git a/src/plugins/python/foldertype.c b/src/plugins/python/foldertype.c index b59b1a420..c11c701b7 100644 --- a/src/plugins/python/foldertype.c +++ b/src/plugins/python/foldertype.c @@ -20,13 +20,13 @@ #include "claws-features.h" #endif -#include - #include "foldertype.h" #include "folderpropertiestype.h" #include "messageinfotype.h" #include "mailboxtype.h" +#include + #include diff --git a/src/plugins/python/foldertype.h b/src/plugins/python/foldertype.h index d85d483de..aa27a5a58 100644 --- a/src/plugins/python/foldertype.h +++ b/src/plugins/python/foldertype.h @@ -18,8 +18,8 @@ #ifndef FOLDERTYPE_H #define FOLDERTYPE_H -#include #include +#include #include "folder.h" diff --git a/src/plugins/python/mailboxtype.c b/src/plugins/python/mailboxtype.c index f0fa4f048..a7493cac2 100644 --- a/src/plugins/python/mailboxtype.c +++ b/src/plugins/python/mailboxtype.c @@ -20,11 +20,11 @@ # include "claws-features.h" #endif +#include "mailboxtype.h" + #include #include -#include "mailboxtype.h" - #include typedef struct { diff --git a/src/plugins/python/mailboxtype.h b/src/plugins/python/mailboxtype.h index 4640a605b..58c49d6a3 100644 --- a/src/plugins/python/mailboxtype.h +++ b/src/plugins/python/mailboxtype.h @@ -18,8 +18,8 @@ #ifndef MAILBOXTYPE_H #define MAILBOXTYPE_H -#include #include +#include #include "folder.h" diff --git a/src/plugins/python/messageinfotype.c b/src/plugins/python/messageinfotype.c index 2cf6ed0cd..3393c8aca 100644 --- a/src/plugins/python/messageinfotype.c +++ b/src/plugins/python/messageinfotype.c @@ -20,8 +20,6 @@ #include "claws-features.h" #endif -#include - #include "messageinfotype.h" #include "common/tags.h" @@ -30,6 +28,8 @@ #include "summaryview.h" #include "procheader.h" +#include + #include #include diff --git a/src/plugins/python/messageinfotype.h b/src/plugins/python/messageinfotype.h index df3c217b1..301275a07 100644 --- a/src/plugins/python/messageinfotype.h +++ b/src/plugins/python/messageinfotype.h @@ -18,8 +18,8 @@ #ifndef MESSAGEINFOTYPE_H #define MESSAGEINFOTYPE_H -#include #include +#include #include "procmsg.h" diff --git a/src/plugins/python/nodetype.c b/src/plugins/python/nodetype.c index 60425f829..70f4978a8 100644 --- a/src/plugins/python/nodetype.c +++ b/src/plugins/python/nodetype.c @@ -20,10 +20,10 @@ #include "claws-features.h" #endif -#include - #include "nodetype.h" +#include + #include /* returns true on success, false if an exception was thrown */ diff --git a/src/plugins/python/nodetype.h b/src/plugins/python/nodetype.h index 03daa314f..735ef5877 100644 --- a/src/plugins/python/nodetype.h +++ b/src/plugins/python/nodetype.h @@ -18,10 +18,8 @@ #ifndef NODETYPE_H #define NODETYPE_H -#include - #include - +#include gboolean cmpy_add_node(PyObject *module); diff --git a/src/plugins/python/python-hooks.c b/src/plugins/python/python-hooks.c index f0228908b..fd7ba6004 100644 --- a/src/plugins/python/python-hooks.c +++ b/src/plugins/python/python-hooks.c @@ -25,15 +25,15 @@ #include "claws-features.h" #endif -#include -#include - #ifdef ENABLE_PYTHON #include #include #include #endif // ENABLE_PYTHON +#include +#include + #include #include diff --git a/src/plugins/python/python_plugin.c b/src/plugins/python/python_plugin.c index 6b49860fc..ada776a8b 100644 --- a/src/plugins/python/python_plugin.c +++ b/src/plugins/python/python_plugin.c @@ -20,11 +20,11 @@ #include "claws-features.h" #endif +#include + #include #include -#include - #include #include "common/hooks.h" -- 2.25.1