From f4ea529b18ddf2b14a8add3a2f56a28084a610f9 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Mon, 3 Sep 2018 14:59:16 +0300 Subject: [PATCH] core: include config.h before sipe-nls.h sipe-nls.h depends on ENABLE_NLS which is defined in config.h. --- src/api/sipe-nls.h | 6 +++++- src/core/sipe-subscriptions.c | 6 +++++- src/core/sipe-ucs.c | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/api/sipe-nls.h b/src/api/sipe-nls.h index 5f773541..ef73159c 100644 --- a/src/api/sipe-nls.h +++ b/src/api/sipe-nls.h @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2009-12 SIPE Project + * Copyright (C) 2009-2018 SIPE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,6 +18,10 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * + * NOTE: config.h must be included before sipe-nls.h, otherwise ENABLE_NLS + * might be left undefined incorrectly! */ #ifdef ENABLE_NLS diff --git a/src/core/sipe-subscriptions.c b/src/core/sipe-subscriptions.c index d45fe4bb..324b4c55 100644 --- a/src/core/sipe-subscriptions.c +++ b/src/core/sipe-subscriptions.c @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2010-2016 SIPE Project + * Copyright (C) 2010-2018 SIPE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +20,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include diff --git a/src/core/sipe-ucs.c b/src/core/sipe-ucs.c index 2f07cf44..756ea0d6 100644 --- a/src/core/sipe-ucs.c +++ b/src/core/sipe-ucs.c @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2013-2016 SIPE Project + * Copyright (C) 2013-2018 SIPE Project * * * This program is free software; you can redistribute it and/or modify @@ -31,6 +31,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include -- 2.11.4.GIT