pidgin/purple-plugin-pack

Parents 963da3b5a6fd
Children f5f34c9d7372
Remove the remaining GLIB_CHECK_VERSION's that are no longer necessary.
--- a/album/album-ui.c Thu Mar 05 00:43:51 2020 -0600
+++ b/album/album-ui.c Thu Mar 05 00:54:50 2020 -0600
@@ -25,13 +25,7 @@
/* We want to use the gstdio functions when possible so that non-ASCII
* filenames are handled properly on Windows. */
-#if GLIB_CHECK_VERSION(2,6,0)
#include <glib/gstdio.h>
-#else
-#include <sys/stat.h>
-#define g_fopen fopen
-#define g_stat stat
-#endif
#include <gtk/gtk.h>
#include <gtk/gtkwidget.h>
--- a/album/album.c Thu Mar 05 00:43:51 2020 -0600
+++ b/album/album.c Thu Mar 05 00:54:50 2020 -0600
@@ -27,13 +27,7 @@
/* We want to use the gstdio functions when possible so that non-ASCII
* filenames are handled properly on Windows. */
-#if GLIB_CHECK_VERSION(2,6,0)
#include <glib/gstdio.h>
-#else
-#include <sys/stat.h>
-#define g_fopen fopen
-#define g_stat stat
-#endif
#ifndef _WIN32
#include <sys/types.h>
--- a/gRIM/gRIM.c Thu Mar 05 00:43:51 2020 -0600
+++ b/gRIM/gRIM.c Thu Mar 05 00:54:50 2020 -0600
@@ -44,16 +44,7 @@
#include <gtkimhtml.h>
#include <gtkplugin.h>
-
-#if GLIB_CHECK_VERSION(2,6,0)
#include <glib/gstdio.h>
-#else
-#include <sys/stat.h>
-#define g_fopen fopen
-#define g_rename rename
-#define g_stat stat
-#define g_unlink unlink
-#endif
#define MAX_LENGTH 1024
--- a/highlight/highlight.c Thu Mar 05 00:43:51 2020 -0600
+++ b/highlight/highlight.c Thu Mar 05 00:54:50 2020 -0600
@@ -231,9 +231,6 @@
static gboolean
plugin_load(PurplePlugin *plugin)
{
-#if !GLIB_CHECK_VERSION(2,4,0)
- return FALSE;
-#else
construct_list();
purple_signal_connect(purple_conversations_get_handle(), "receiving-chat-msg", plugin,
@@ -253,7 +250,6 @@
history = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, string_destroy);
return TRUE;
-#endif
}
static gboolean
--- a/okcupid/okc_connection.c Thu Mar 05 00:43:51 2020 -0600
+++ b/okcupid/okc_connection.c Thu Mar 05 00:54:50 2020 -0600
@@ -20,10 +20,6 @@
#include "okc_connection.h"
-#if !GLIB_CHECK_VERSION (2, 22, 0)
-#define g_hostname_is_ip_address(hostname) (g_ascii_isdigit(hostname[0]) && g_strstr_len(hostname, 4, "."))
-#endif
-
static void okc_attempt_connection(OkCupidConnection *);
static void okc_next_connection(OkCupidAccount *oca);
--- a/oldlogger/oldlogger.c Thu Mar 05 00:43:51 2020 -0600
+++ b/oldlogger/oldlogger.c Thu Mar 05 00:54:50 2020 -0600
@@ -38,15 +38,7 @@
/* We want to use the gstdio functions when possible so that non-ASCII
* filenames are handled properly on Windows. */
-#if GLIB_CHECK_VERSION(2,6,0)
#include <glib/gstdio.h>
-#else
-#include <sys/stat.h>
-#define g_fopen fopen
-#define g_rename rename
-#define g_stat stat
-#define g_unlink unlink
-#endif
static PurpleLogLogger *oldtxt_logger;
static PurpleLogLogger *oldhtml_logger;