comparison src/internal.h @ 5872:059d95c67cda

[gaim-migrate @ 6304] The legendary Header File Cleanup! Files now only include what they need. This should reduce the number of files that must recompile when a header file changes. It's a lot nicer. Trust me on it. I also added a couple new header files. I hope I didn't break TOO much! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 23:21:02 +0000
parents
children b3c412884a22
comparison
equal deleted inserted replaced
5871:508adf90fbb9 5872:059d95c67cda
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>
57 #include <sys/wait.h>
58 #include <ctype.h>
59 #include <errno.h>
60 #include <fcntl.h>
61 #include <math.h>
62 #include <stdio.h>
63 #include <stdlib.h>
64 #include <string.h>
65 #include <time.h>
66
67 #ifdef HAVE_ICONV
68 #include <iconv.h>
69 #endif
70
71 #ifdef HAVE_LANGINFO_CODESET
72 #include <langinfo.h>
73 #endif
74
75 #ifdef GAIM_PLUGINS
76 # include <gmodule.h>
77 # ifndef _WIN32
78 # include <dlfcn.h>
79 # endif
80 #endif
81
82 #ifdef _WIN32
83 # include <gdk/gdkwin32.h>
84 # include <winsock.h>
85 # include "win32dep.h"
86 # include <direct.h>
87 # include <winsock.h>
88 # include <io.h>
89 #else
90 # include <arpa/inet.h>
91 # include <netinet/in.h>
92 # include <sys/socket.h>
93 # include <sys/un.h>
94 # include <sys/utsname.h>
95 # include <gdk/gdkx.h>
96 # include <netdb.h>
97 # include <signal.h>
98 # include <unistd.h>
99 #endif
100
101 #ifndef MAXPATHLEN
102 # define MAXPATHLEN 1024
103 #endif
104
105 #ifndef HOST_NAME_MAX
106 # define HOST_NAME_MAX 255
107 #endif
108
109 #define PATHSIZE 1024
110
111 #include <gtk/gtk.h>
112 #include <glib.h>
113
114 #define WEBSITE "http://gaim.sourceforge.net/"
115
116 #endif /* _GAIM_INTERNAL_H_ */