[gmime] Silence compiler warnings about redefinitions of G_GNUC_* macros
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Silence compiler warnings about redefinitions of G_GNUC_* macros
- Date: Sat, 21 Dec 2019 16:59:14 +0000 (UTC)
commit 973602a1b7d666ffb5ddcf152239ef8c2e774ca2
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Mon Nov 11 10:06:16 2019 -0500
Silence compiler warnings about redefinitions of G_GNUC_* macros
gmime/gmime-utils.c | 5 +++--
gmime/internet-address.c | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gmime/gmime-utils.c b/gmime/gmime-utils.c
index f48e7882..a6d77e1e 100644
--- a/gmime/gmime-utils.c
+++ b/gmime/gmime-utils.c
@@ -25,8 +25,6 @@
#define _GNU_SOURCE
-#include <glib.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -52,8 +50,11 @@
#ifdef LIBIDN
#include <idn2.h>
+#undef G_GNUC_UNUSED
+#undef G_GNUC_DEPRECATED
#endif
+#include <glib.h>
#include "gmime-utils.h"
#include "gmime-common.h"
#include "gmime-internal.h"
diff --git a/gmime/internet-address.c b/gmime/internet-address.c
index 7edc6807..f9bc6b55 100644
--- a/gmime/internet-address.c
+++ b/gmime/internet-address.c
@@ -31,6 +31,8 @@
#ifdef LIBIDN
#include <idn2.h>
+#undef G_GNUC_UNUSED
+#undef G_GNUC_DEPRECATED
#endif
#include "internet-address.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]