60322f718b2b63760beeda5d3395520691875bc6
1 /*
2 * Implementation the Pedro mini-XMPP client
3 *
4 * Authors:
5 * Bob Jamison
6 *
7 * Copyright (C) 2005-2007 Bob Jamison
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
24 #include <stdio.h>
29 //#######################################################################
30 //# G E C K O (xulrunner)
31 //#######################################################################
33 #ifdef GECKO_EMBED
36 #include "geckoembed.h"
38 int main(int argc, char *argv[])
39 {
40 GeckoEmbed embedder;
42 embedder.run();
44 return 0;
45 }
48 //#######################################################################
49 //# G T K M M (pedrogui)
50 //#######################################################################
51 #else /* NOT GECKO_EMBED */
55 #include "pedrogui.h"
57 int main(int argc, char *argv[])
58 {
59 Gtk::Main kit(argc, argv);
61 Pedro::PedroGui window;
63 kit.run(window);
65 return 0;
66 }
70 #endif /* GECKO_EMBED */
76 #ifdef __WIN32__
77 #include <windows.h>
79 extern "C" int __export WINAPI
80 WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
81 char *lpszCmdLine, int nCmdShow)
82 {
83 int ret = main (__argc, __argv);
84 return ret;
85 }
87 #endif
91 //########################################################################
92 //# E N D O F F I L E
93 //########################################################################