From 4f15dd9a2d601fef6c934206f4d489f5b82f937d Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 6 Apr 2006 00:52:17 +0200 Subject: [PATCH] Python.h must be included as last to satisfy tcc, but Python redefines _POSIX_C_SOURCE macro, so #undef here to avoid warnings --- src/scripting/python/hooks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripting/python/hooks.c b/src/scripting/python/hooks.c index 0c6103380..9f3d09527 100644 --- a/src/scripting/python/hooks.c +++ b/src/scripting/python/hooks.c @@ -4,19 +4,20 @@ #include "config.h" #endif -#include "scripting/python/core.h" -#include #include "elinks.h" #include "cache/cache.h" #include "main/event.h" #include "protocol/uri.h" +#include "scripting/python/core.h" #include "scripting/python/hooks.h" #include "session/location.h" #include "session/session.h" #include "util/string.h" +#undef _POSIX_C_SOURCE +#include /* The events that will trigger the functions below and what they are expected * to do is explained in doc/events.txt */