pidgin/pidgin

Parents 569ab1326932
Children 9ce322b6f2d1
Make it possible so that libpurple plugins can use functions defined in libpurple/glibcompat.h

Testing Done:
Compiled on linux and raspberry pi os which fixes that build.

Reviewed at https://reviews.imfreedom.org/r/169/
--- a/libpurple/glibcompat.h Wed Oct 14 23:05:50 2020 -0500
+++ b/libpurple/glibcompat.h Thu Oct 15 20:16:13 2020 -0500
@@ -19,10 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
-#if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
-# error "only <purple.h> may be included directly"
-#endif
-
#ifndef PURPLE_GLIBCOMPAT_H
#define PURPLE_GLIBCOMPAT_H
/*
@@ -55,7 +51,6 @@
#if !GLIB_CHECK_VERSION(2, 62, 0)
#define g_date_time_format_iso8601(dt) (purple_compat_date_time_format_iso8601((dt)))
-G_GNUC_INTERNAL
gchar *purple_compat_date_time_format_iso8601(GDateTime *datetime);
#endif /* GLIB_CHECK_VERSION(2, 62, 0) */
--- a/libpurple/plugins/notification-sound/notification-sound.c Wed Oct 14 23:05:50 2020 -0500
+++ b/libpurple/plugins/notification-sound/notification-sound.c Thu Oct 15 20:16:13 2020 -0500
@@ -24,6 +24,7 @@
#include <glib/gi18n-lib.h>
#include <purple.h>
+#include "libpurple/glibcompat.h"
#include <canberra.h>