tcl: Fix dynamically loaded Tcl/Tk functions to be called using cdecl calling conventions. release-2.x.y

Mon, 18 Feb 2013 18:24:08 -0500

author
Daniel Atallah <datallah@pidgin.im>
date
Mon, 18 Feb 2013 18:24:08 -0500
branch
release-2.x.y
changeset 33756
81c1f235dce6
parent 33754
a860609d9c9e
child 33760
66611fba7197
child 33765
910bab8c9dac

tcl: Fix dynamically loaded Tcl/Tk functions to be called using cdecl calling conventions.

Fixes #15520

libpurple/plugins/tcl/tcl.c file | annotate | diff | comparison | revisions
--- a/libpurple/plugins/tcl/tcl.c	Thu Feb 14 21:58:02 2013 +0000
+++ b/libpurple/plugins/tcl/tcl.c	Mon Feb 18 18:24:08 2013 -0500
@@ -422,8 +422,8 @@
 };
 
 #ifdef _WIN32
-typedef Tcl_Interp* (CALLBACK* LPFNTCLCREATEINTERP)(void);
-typedef void        (CALLBACK* LPFNTKINIT)(Tcl_Interp*);
+typedef Tcl_Interp* (__cdecl* LPFNTCLCREATEINTERP)(void);
+typedef void        (__cdecl* LPFNTKINIT)(Tcl_Interp*);
 
 LPFNTCLCREATEINTERP wtcl_CreateInterp = NULL;
 LPFNTKINIT wtk_Init = NULL;

mercurial