Mercurial > pidgin
annotate src/internal.h @ 8735:92cbf9713795
[gaim-migrate @ 9490]
Patch by Jonathan Champ to corect the vairous speling mistakes we hav e in
the coments and documentaion. Thansk Jonathan!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 21 Apr 2004 01:34:26 +0000 |
parents | 8b935eddeb10 |
children | 504570a1acd5 |
rev | line source |
---|---|
8735
92cbf9713795
[gaim-migrate @ 9490]
Christian Hammond <chipx86@chipx86.com>
parents:
8730
diff
changeset
|
1 /** |
5872 | 2 * @file internal.h Internal definitions and includes |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
3 * @ingroup core |
5872 | 4 * |
5 * gaim | |
6 * | |
8046 | 7 * Gaim is the legal property of its developers, whose names are too numerous |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | |
9 * source distribution. | |
5872 | 10 * |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
24 */ | |
25 #ifndef _GAIM_INTERNAL_H_ | |
26 #define _GAIM_INTERNAL_H_ | |
27 | |
28 #ifdef HAVE_CONFIG_H | |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
29 # include <config.h> |
5872 | 30 #endif |
31 | |
32 #ifdef ENABLE_NLS | |
33 # include <libintl.h> | |
34 # define _(x) gettext(x) | |
35 # ifdef gettext_noop | |
36 # define N_(String) gettext_noop (String) | |
37 # else | |
38 # define N_(String) (String) | |
39 # endif | |
40 #else | |
8730 | 41 # include <locale.h> |
5872 | 42 # define N_(String) (String) |
43 # define _(x) (x) | |
5976 | 44 # define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural)) |
5872 | 45 #endif |
5976 | 46 /* |
47 * The Singular/Plural/Number ngettext define above was taken from | |
48 * an email to the texinfo mailing list by Manuel Guerrero. Thank | |
49 * you Manuel, and thank you Alex's good friend Google. | |
50 */ | |
5872 | 51 |
52 #ifdef HAVE_ENDIAN_H | |
53 # include <endian.h> | |
54 #endif | |
55 | |
56 #define MSG_LEN 2048 | |
57 /* The above should normally be the same as BUF_LEN, | |
8735
92cbf9713795
[gaim-migrate @ 9490]
Christian Hammond <chipx86@chipx86.com>
parents:
8730
diff
changeset
|
58 * but just so we're explicitly asking for the max message |
5872 | 59 * length. */ |
60 #define BUF_LEN MSG_LEN | |
61 #define BUF_LONG BUF_LEN * 2 | |
62 | |
63 #include <sys/stat.h> | |
64 #include <sys/time.h> | |
65 #include <sys/types.h> | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
66 #ifndef _WIN32 |
5872 | 67 #include <sys/wait.h> |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
68 #endif |
5872 | 69 #include <ctype.h> |
70 #include <errno.h> | |
71 #include <fcntl.h> | |
72 #include <math.h> | |
73 #include <stdio.h> | |
74 #include <stdlib.h> | |
75 #include <string.h> | |
76 #include <time.h> | |
77 | |
78 #ifdef HAVE_ICONV | |
79 #include <iconv.h> | |
80 #endif | |
81 | |
82 #ifdef HAVE_LANGINFO_CODESET | |
83 #include <langinfo.h> | |
84 #endif | |
85 | |
86 #ifdef GAIM_PLUGINS | |
87 # include <gmodule.h> | |
88 # ifndef _WIN32 | |
89 # include <dlfcn.h> | |
90 # endif | |
91 #endif | |
92 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
93 #ifndef _WIN32 |
5872 | 94 # include <netinet/in.h> |
95 # include <sys/socket.h> | |
6170 | 96 # include <arpa/inet.h> |
5872 | 97 # include <sys/un.h> |
98 # include <sys/utsname.h> | |
99 # include <netdb.h> | |
100 # include <signal.h> | |
101 # include <unistd.h> | |
102 #endif | |
103 | |
104 #ifndef MAXPATHLEN | |
105 # define MAXPATHLEN 1024 | |
106 #endif | |
107 | |
108 #ifndef HOST_NAME_MAX | |
109 # define HOST_NAME_MAX 255 | |
110 #endif | |
111 | |
112 #define PATHSIZE 1024 | |
113 | |
114 #include <glib.h> | |
115 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
116 #ifdef _WIN32 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
117 #include "win32dep.h" |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
118 #endif |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
119 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
120 |
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
121 #define GAIM_WEBSITE "http://gaim.sourceforge.net/" |
5872 | 122 |
123 #endif /* _GAIM_INTERNAL_H_ */ |