Mercurial > pidgin
annotate src/internal.h @ 6174:8293762bdc27
[gaim-migrate @ 6659]
I'm in favor of releasing 0.66 as soon as the account proxy importing
thing is fixed.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 17 Jul 2003 05:28:21 +0000 |
parents | 66ab9c9b3524 |
children | 8f94cce8faa5 |
rev | line source |
---|---|
5872 | 1 /** |
2 * @file internal.h Internal definitions and includes | |
3 * @ingroup gtkui | |
4 * | |
5 * gaim | |
6 * | |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
8 * | |
9 * This program is free software; you can redistribute it and/or modify | |
10 * it under the terms of the GNU General Public License as published by | |
11 * the Free Software Foundation; either version 2 of the License, or | |
12 * (at your option) any later version. | |
13 * | |
14 * This program 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 | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 */ | |
23 #ifndef _GAIM_INTERNAL_H_ | |
24 #define _GAIM_INTERNAL_H_ | |
25 | |
26 #ifdef HAVE_CONFIG_H | |
27 #include <config.h> | |
28 #endif | |
29 | |
30 #ifdef ENABLE_NLS | |
31 # include <libintl.h> | |
32 # define _(x) gettext(x) | |
33 # ifdef gettext_noop | |
34 # define N_(String) gettext_noop (String) | |
35 # else | |
36 # define N_(String) (String) | |
37 # endif | |
38 #else | |
39 # define N_(String) (String) | |
40 # define _(x) (x) | |
5976 | 41 # define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural)) |
5872 | 42 #endif |
5976 | 43 /* |
44 * The Singular/Plural/Number ngettext define above was taken from | |
45 * an email to the texinfo mailing list by Manuel Guerrero. Thank | |
46 * you Manuel, and thank you Alex's good friend Google. | |
47 */ | |
5872 | 48 |
49 #ifdef HAVE_ENDIAN_H | |
50 # include <endian.h> | |
51 #endif | |
52 | |
53 #define MSG_LEN 2048 | |
54 /* The above should normally be the same as BUF_LEN, | |
55 * but just so we're explictly asking for the max message | |
56 * length. */ | |
57 #define BUF_LEN MSG_LEN | |
58 #define BUF_LONG BUF_LEN * 2 | |
59 | |
60 #include <sys/stat.h> | |
61 #include <sys/time.h> | |
62 #include <sys/types.h> | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
63 #ifndef _WIN32 |
5872 | 64 #include <sys/wait.h> |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
65 #endif |
5872 | 66 #include <ctype.h> |
67 #include <errno.h> | |
68 #include <fcntl.h> | |
69 #include <math.h> | |
70 #include <stdio.h> | |
71 #include <stdlib.h> | |
72 #include <string.h> | |
73 #include <time.h> | |
74 | |
75 #ifdef HAVE_ICONV | |
76 #include <iconv.h> | |
77 #endif | |
78 | |
79 #ifdef HAVE_LANGINFO_CODESET | |
80 #include <langinfo.h> | |
81 #endif | |
82 | |
83 #ifdef GAIM_PLUGINS | |
84 # include <gmodule.h> | |
85 # ifndef _WIN32 | |
86 # include <dlfcn.h> | |
87 # endif | |
88 #endif | |
89 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
90 #ifndef _WIN32 |
5872 | 91 # include <netinet/in.h> |
92 # include <sys/socket.h> | |
6170 | 93 # include <arpa/inet.h> |
5872 | 94 # include <sys/un.h> |
95 # include <sys/utsname.h> | |
96 # include <gdk/gdkx.h> | |
97 # include <netdb.h> | |
98 # include <signal.h> | |
99 # include <unistd.h> | |
100 #endif | |
101 | |
102 #ifndef MAXPATHLEN | |
103 # define MAXPATHLEN 1024 | |
104 #endif | |
105 | |
106 #ifndef HOST_NAME_MAX | |
107 # define HOST_NAME_MAX 255 | |
108 #endif | |
109 | |
110 #define PATHSIZE 1024 | |
111 | |
112 #include <gtk/gtk.h> | |
113 #include <glib.h> | |
114 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
115 #ifdef _WIN32 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
116 #include "win32dep.h" |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
117 #endif |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
118 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
119 |
5872 | 120 #define WEBSITE "http://gaim.sourceforge.net/" |
121 | |
122 #endif /* _GAIM_INTERNAL_H_ */ |