[gaim-migrate @ 6344]

Tue, 17 Jun 2003 18:53:49 +0000

author
Herman Bloggs <herman@bluedigits.com>
date
Tue, 17 Jun 2003 18:53:49 +0000
changeset 5912
32619a71edd2
parent 5911
df774785c6ee
child 5913
4d016c00bb36

[gaim-migrate @ 6344]
win32 adjustments for header re-org

plugins/iconaway.c file | annotate | diff | comparison | revisions
plugins/perl/perl.c file | annotate | diff | comparison | revisions
plugins/win32/transparency/win2ktrans.c file | annotate | diff | comparison | revisions
plugins/win32/winprefs/winprefs.c file | annotate | diff | comparison | revisions
src/internal.h file | annotate | diff | comparison | revisions
src/protocols/msn/ft.c file | annotate | diff | comparison | revisions
src/server.c file | annotate | diff | comparison | revisions
--- a/plugins/iconaway.c	Tue Jun 17 07:37:35 2003 +0000
+++ b/plugins/iconaway.c	Tue Jun 17 18:53:49 2003 +0000
@@ -7,10 +7,9 @@
 
 #define ICONAWAY_PLUGIN_ID "gtk-iconaway"
 
-G_MODULE_IMPORT GtkWidget *imaway;
-/*G_MODULE_IMPORT GtkWidget *blist;*/
-/* XXX G_MODULE_IMPORT GtkWidget *all_chats; */
-/*G_MODULE_IMPORT GtkWidget *all_convos;*/
+#ifdef _WIN32
+__declspec(dllimport) GtkWidget *imaway;
+#endif
 
 #ifdef USE_APPLET
 extern void applet_destroy_buddy();
--- a/plugins/perl/perl.c	Tue Jun 17 07:37:35 2003 +0000
+++ b/plugins/perl/perl.c	Tue Jun 17 18:53:49 2003 +0000
@@ -77,6 +77,9 @@
 # undef pipe
 #endif
 
+#ifdef _WIN32
+#define _WIN32DEP_H_
+#endif
 #include "internal.h"
 
 #include "debug.h"
--- a/plugins/win32/transparency/win2ktrans.c	Tue Jun 17 07:37:35 2003 +0000
+++ b/plugins/win32/transparency/win2ktrans.c	Tue Jun 17 18:53:49 2003 +0000
@@ -21,12 +21,15 @@
  *
  */
 #include <gdk/gdkwin32.h>
-#include <gmodule.h>
-#include "gaim.h"
+#include "internal.h"
+
+#include "prefs.h"
+#include "debug.h"
+
+#include "gtkconv.h"
 #include "gtkplugin.h"
 #include "gtkblist.h"
-#include "prefs.h"
-#include "win32dep.h"
+#include "gtkutils.h"
 
 /*
  *  MACROS & DEFINES
--- a/plugins/win32/winprefs/winprefs.c	Tue Jun 17 07:37:35 2003 +0000
+++ b/plugins/win32/winprefs/winprefs.c	Tue Jun 17 18:53:49 2003 +0000
@@ -21,10 +21,14 @@
 #include <windows.h>
 #include <winreg.h>
 #include <winerror.h>
-#include "gaim.h"
+
+#include "internal.h"
+
+#include "prefs.h"
+#include "debug.h"
+
 #include "gtkplugin.h"
-#include "prefs.h"
-#include "win32dep.h"
+#include "gtkutils.h"
 
 /*
  *  MACROS & DEFINES
--- a/src/internal.h	Tue Jun 17 07:37:35 2003 +0000
+++ b/src/internal.h	Tue Jun 17 18:53:49 2003 +0000
@@ -54,7 +54,9 @@
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#ifndef _WIN32
 #include <sys/wait.h>
+#endif
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -79,14 +81,7 @@
 # endif
 #endif
 
-#ifdef _WIN32
-# include <gdk/gdkwin32.h>
-# include <winsock.h>
-# include "win32dep.h"
-# include <direct.h>
-# include <winsock.h>
-# include <io.h>
-#else
+#ifndef _WIN32
 # include <arpa/inet.h>
 # include <netinet/in.h>
 # include <sys/socket.h>
@@ -111,6 +106,11 @@
 #include <gtk/gtk.h>
 #include <glib.h>
 
+#ifdef _WIN32
+#include "win32dep.h"
+#endif
+
+
 #define WEBSITE "http://gaim.sourceforge.net/"
 
 #endif /* _GAIM_INTERNAL_H_ */
--- a/src/protocols/msn/ft.c	Tue Jun 17 07:37:35 2003 +0000
+++ b/src/protocols/msn/ft.c	Tue Jun 17 18:53:49 2003 +0000
@@ -24,10 +24,9 @@
 
 #ifdef _WIN32
 #include "win32dep.h"
+__declspec(dllimport) GList *connections;
 #endif
 
-G_MODULE_IMPORT GSList *connections;
-
 static struct gaim_xfer *
 find_xfer_by_cookie(GaimConnection *gc, unsigned long cookie)
 {
--- a/src/server.c	Tue Jun 17 07:37:35 2003 +0000
+++ b/src/server.c	Tue Jun 17 18:53:49 2003 +0000
@@ -118,7 +118,7 @@
 		prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
 
 		if (prpl_info->close)
-			prpl_info->close(gc);
+			(prpl_info->close)(gc);
 	}
 
 	prpl = gc->prpl;

mercurial