Mercurial > pidgin.yaz
annotate src/internal.h @ 5916:a51b709b2b3e
[gaim-migrate @ 6348]
Kyung-uk Son updated the Korean translation again :-)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 18 Jun 2003 01:32:39 +0000 |
parents | b3c412884a22 |
children | 7cce6643c51e |
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) | |
41 #endif | |
42 | |
43 #ifdef HAVE_ENDIAN_H | |
44 # include <endian.h> | |
45 #endif | |
46 | |
47 #define MSG_LEN 2048 | |
48 /* The above should normally be the same as BUF_LEN, | |
49 * but just so we're explictly asking for the max message | |
50 * length. */ | |
51 #define BUF_LEN MSG_LEN | |
52 #define BUF_LONG BUF_LEN * 2 | |
53 | |
54 #include <sys/stat.h> | |
55 #include <sys/time.h> | |
56 #include <sys/types.h> | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
57 #ifndef _WIN32 |
5872 | 58 #include <sys/wait.h> |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
59 #endif |
5872 | 60 #include <ctype.h> |
61 #include <errno.h> | |
62 #include <fcntl.h> | |
63 #include <math.h> | |
64 #include <stdio.h> | |
65 #include <stdlib.h> | |
66 #include <string.h> | |
67 #include <time.h> | |
68 | |
69 #ifdef HAVE_ICONV | |
70 #include <iconv.h> | |
71 #endif | |
72 | |
73 #ifdef HAVE_LANGINFO_CODESET | |
74 #include <langinfo.h> | |
75 #endif | |
76 | |
77 #ifdef GAIM_PLUGINS | |
78 # include <gmodule.h> | |
79 # ifndef _WIN32 | |
80 # include <dlfcn.h> | |
81 # endif | |
82 #endif | |
83 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
84 #ifndef _WIN32 |
5872 | 85 # include <arpa/inet.h> |
86 # include <netinet/in.h> | |
87 # include <sys/socket.h> | |
88 # include <sys/un.h> | |
89 # include <sys/utsname.h> | |
90 # include <gdk/gdkx.h> | |
91 # include <netdb.h> | |
92 # include <signal.h> | |
93 # include <unistd.h> | |
94 #endif | |
95 | |
96 #ifndef MAXPATHLEN | |
97 # define MAXPATHLEN 1024 | |
98 #endif | |
99 | |
100 #ifndef HOST_NAME_MAX | |
101 # define HOST_NAME_MAX 255 | |
102 #endif | |
103 | |
104 #define PATHSIZE 1024 | |
105 | |
106 #include <gtk/gtk.h> | |
107 #include <glib.h> | |
108 | |
5912
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
109 #ifdef _WIN32 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
110 #include "win32dep.h" |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
111 #endif |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
112 |
b3c412884a22
[gaim-migrate @ 6344]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5872
diff
changeset
|
113 |
5872 | 114 #define WEBSITE "http://gaim.sourceforge.net/" |
115 | |
116 #endif /* _GAIM_INTERNAL_H_ */ |