talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6b8fa181634ff157965ff6f109c174644143316a
parent aa1049c6aea50094b53971a2730b8f6f9f533f3a
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sat, 16 Nov 2013 20:32:12 +0100

Clean all ‘… warning: "_POSIX_C_SOURCE" redefined’

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

Diffstat:
Msrc/plugins/python/accounttype.h | 2+-
Msrc/plugins/python/composewindowtype.c | 6+++---
Msrc/plugins/python/composewindowtype.h | 2+-
Msrc/plugins/python/folderpropertiestype.h | 2+-
Msrc/plugins/python/foldertype.c | 4++--
Msrc/plugins/python/foldertype.h | 2+-
Msrc/plugins/python/mailboxtype.c | 4++--
Msrc/plugins/python/mailboxtype.h | 2+-
Msrc/plugins/python/messageinfotype.c | 4++--
Msrc/plugins/python/messageinfotype.h | 2+-
Msrc/plugins/python/nodetype.c | 4++--
Msrc/plugins/python/nodetype.h | 4+---
Msrc/plugins/python/python-hooks.c | 6+++---
Msrc/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 @@ -18,8 +18,8 @@ #ifndef ACCOUNTTYPE_H #define ACCOUNTTYPE_H -#include <glib.h> #include <Python.h> +#include <glib.h> #include "account.h" diff --git a/src/plugins/python/composewindowtype.c b/src/plugins/python/composewindowtype.c @@ -20,9 +20,6 @@ # include "claws-features.h" #endif -#include <glib.h> -#include <glib/gi18n.h> - #include "composewindowtype.h" #include "accounttype.h" @@ -34,6 +31,9 @@ #include "account.h" #include "summaryview.h" +#include <glib.h> +#include <glib/gi18n.h> + #include <structmember.h> #include <string.h> diff --git a/src/plugins/python/composewindowtype.h b/src/plugins/python/composewindowtype.h @@ -18,8 +18,8 @@ #ifndef COMPOSEWINDOWTYPE_H #define COMPOSEWINDOWTYPE_H -#include <glib.h> #include <Python.h> +#include <glib.h> #include "compose.h" diff --git a/src/plugins/python/folderpropertiestype.h b/src/plugins/python/folderpropertiestype.h @@ -18,8 +18,8 @@ #ifndef FOLDERPROPERTIESTYPE_H #define FOLDERPROPERTIESTYPE_H -#include <glib.h> #include <Python.h> +#include <glib.h> #include "folder_item_prefs.h" diff --git a/src/plugins/python/foldertype.c b/src/plugins/python/foldertype.c @@ -20,13 +20,13 @@ #include "claws-features.h" #endif -#include <glib/gi18n.h> - #include "foldertype.h" #include "folderpropertiestype.h" #include "messageinfotype.h" #include "mailboxtype.h" +#include <glib/gi18n.h> + #include <structmember.h> diff --git a/src/plugins/python/foldertype.h b/src/plugins/python/foldertype.h @@ -18,8 +18,8 @@ #ifndef FOLDERTYPE_H #define FOLDERTYPE_H -#include <glib.h> #include <Python.h> +#include <glib.h> #include "folder.h" diff --git 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 <glib.h> #include <glib/gi18n.h> -#include "mailboxtype.h" - #include <structmember.h> typedef struct { diff --git a/src/plugins/python/mailboxtype.h b/src/plugins/python/mailboxtype.h @@ -18,8 +18,8 @@ #ifndef MAILBOXTYPE_H #define MAILBOXTYPE_H -#include <glib.h> #include <Python.h> +#include <glib.h> #include "folder.h" diff --git a/src/plugins/python/messageinfotype.c b/src/plugins/python/messageinfotype.c @@ -20,8 +20,6 @@ #include "claws-features.h" #endif -#include <glib/gi18n.h> - #include "messageinfotype.h" #include "common/tags.h" @@ -30,6 +28,8 @@ #include "summaryview.h" #include "procheader.h" +#include <glib/gi18n.h> + #include <structmember.h> #include <string.h> diff --git a/src/plugins/python/messageinfotype.h b/src/plugins/python/messageinfotype.h @@ -18,8 +18,8 @@ #ifndef MESSAGEINFOTYPE_H #define MESSAGEINFOTYPE_H -#include <glib.h> #include <Python.h> +#include <glib.h> #include "procmsg.h" diff --git a/src/plugins/python/nodetype.c b/src/plugins/python/nodetype.c @@ -20,10 +20,10 @@ #include "claws-features.h" #endif -#include <glib/gi18n.h> - #include "nodetype.h" +#include <glib/gi18n.h> + #include <structmember.h> /* returns true on success, false if an exception was thrown */ diff --git a/src/plugins/python/nodetype.h b/src/plugins/python/nodetype.h @@ -18,10 +18,8 @@ #ifndef NODETYPE_H #define NODETYPE_H -#include <glib.h> - #include <Python.h> - +#include <glib.h> gboolean cmpy_add_node(PyObject *module); diff --git a/src/plugins/python/python-hooks.c b/src/plugins/python/python-hooks.c @@ -25,15 +25,15 @@ #include "claws-features.h" #endif -#include <glib.h> -#include <glib/gi18n.h> - #ifdef ENABLE_PYTHON #include <Python.h> #include <pygobject.h> #include <pygtk/pygtk.h> #endif // ENABLE_PYTHON +#include <glib.h> +#include <glib/gi18n.h> + #include <dlfcn.h> #include <signal.h> diff --git a/src/plugins/python/python_plugin.c b/src/plugins/python/python_plugin.c @@ -20,11 +20,11 @@ #include "claws-features.h" #endif +#include <Python.h> + #include <glib.h> #include <glib/gi18n.h> -#include <Python.h> - #include <errno.h> #include "common/hooks.h"