| |
1 /* |
| |
2 * pidgin |
| |
3 * |
| |
4 * Pidgin is the legal property of its developers, whose names are too numerous |
| |
5 * to list here. Please refer to the COPYRIGHT file distributed with this |
| |
6 * source distribution. |
| |
7 * |
| |
8 * This program is free software; you can redistribute it and/or modify |
| |
9 * it under the terms of the GNU General Public License as published by |
| |
10 * the Free Software Foundation; either version 2 of the License, or |
| |
11 * (at your option) any later version. |
| |
12 * |
| |
13 * This program is distributed in the hope that it will be useful, |
| |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
16 * GNU General Public License for more details. |
| |
17 * |
| |
18 * You should have received a copy of the GNU General Public License |
| |
19 * along with this program; if not, write to the Free Software |
| |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| |
21 * |
| |
22 */ |
| |
23 |
| |
24 #include "internal.h" |
| |
25 #include "pidgin.h" |
| |
26 |
| |
27 #ifdef _WIN32 |
| |
28 /* suppress gcc "no previous prototype" warning */ |
| |
29 int __cdecl pidgin_main(HINSTANCE hint, int argc, char *argv[]); |
| |
30 int __cdecl pidgin_main(HINSTANCE hint, int argc, char *argv[]) |
| |
31 #else |
| |
32 int main(int argc, char *argv[]) |
| |
33 #endif |
| |
34 { |
| |
35 #if !GLIB_CHECK_VERSION(2, 32, 0) |
| |
36 /* GLib threading system is automaticaly initialized since 2.32. |
| |
37 * For earlier versions, it have to be initialized before calling any |
| |
38 * Glib or GTK+ functions. |
| |
39 */ |
| |
40 g_thread_init(NULL); |
| |
41 #endif |
| |
42 |
| |
43 g_set_prgname("Pidgin"); |
| |
44 g_set_application_name(PIDGIN_NAME); |
| |
45 |
| |
46 return pidgin_start(argc, argv); |
| |
47 } |