libpurple/internal.h

branch
cpw.khc.msnp14
changeset 20548
a253c9259db6
parent 20540
e9f88079e5c0
parent 18609
3512a0bda029
child 20592
a4a7b830471a
equal deleted inserted replaced
20547:35cff3479def 20548:a253c9259db6
92 92
93 #ifdef HAVE_LANGINFO_CODESET 93 #ifdef HAVE_LANGINFO_CODESET
94 #include <langinfo.h> 94 #include <langinfo.h>
95 #endif 95 #endif
96 96
97 #include <gmodule.h>
98
97 #ifdef PURPLE_PLUGINS 99 #ifdef PURPLE_PLUGINS
98 # include <gmodule.h>
99 # ifndef _WIN32 100 # ifndef _WIN32
100 # include <dlfcn.h> 101 # include <dlfcn.h>
101 # endif 102 # endif
102 #endif 103 #endif
103 104
110 # include <netdb.h> 111 # include <netdb.h>
111 # include <signal.h> 112 # include <signal.h>
112 # include <unistd.h> 113 # include <unistd.h>
113 #endif 114 #endif
114 115
115 #ifndef MAXPATHLEN 116 /* MAXPATHLEN should only be used with readlink() on glib < 2.4.0. For
116 # ifdef PATH_MAX 117 * anything else, use g_file_read_link() or other dynamic functions. This is
117 # define MAXPATHLEN PATH_MAX 118 * important because Hurd has no hard limits on path length. */
118 # else 119 #if !GLIB_CHECK_VERSION(2,4,0)
119 # define MAXPATHLEN 1024 120 # ifndef MAXPATHLEN
121 # ifdef PATH_MAX
122 # define MAXPATHLEN PATH_MAX
123 # else
124 # define MAXPATHLEN 1024
125 # endif
120 # endif 126 # endif
121 #endif 127 #endif
122 128
123 #ifndef HOST_NAME_MAX 129 #ifndef HOST_NAME_MAX
124 # define HOST_NAME_MAX 255 130 # define HOST_NAME_MAX 255

mercurial