diff src/win_aim.c @ 3630:9682c0e022c6

[gaim-migrate @ 3753] Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 11 Oct 2002 03:14:01 +0000
parents
children 17b650a36bca
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/win_aim.c	Fri Oct 11 03:14:01 2002 +0000
@@ -0,0 +1,37 @@
+/*
+ *  win_aim.c
+ *
+ *  Author: Herman Bloggs <hermanator12002@yahoo.com>
+ *  Date: June, 2002
+ *  Description: Entry point for win32 gaim, and various win32 dependant
+ *  routines.
+ */
+#include <windows.h>
+#include <stdlib.h>
+
+/*
+ *  GLOBALS
+ */
+__declspec(dllimport) HINSTANCE g_hInstance;
+
+/*
+ *  PROTOTYPES
+ */
+extern int gaim_main( int, char** );
+
+#ifdef __GNUC__
+#  ifndef _stdcall
+#    define _stdcall  __attribute__((stdcall))
+#  endif
+#endif
+
+int _stdcall
+WinMain (struct HINSTANCE__ *hInstance, 
+	 struct HINSTANCE__ *hPrevInstance,
+	 char               *lpszCmdLine,
+	 int                 nCmdShow)
+{
+	g_hInstance = hInstance;
+	return gaim_main (__argc, __argv);
+}
+