12 #if !defined(AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_)
13 #define AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_
16 #define VERSION "1.9.1 (trunk) snapshot 20061229"
18 #pragma warning(disable: 4761)
26 #define WIN32_LEAN_AND_MEAN
40 #include <sys/types.h>
47 #define HAVE_SNPRINTF 1
49 #define snprintf _snprintf
60 #define GETTIMEOFDAY_TWO_ARGS
61 #define MAXPATHLEN 256
66 #define inline __inline
67 #define unlink(__a) _unlink(__a)
68 #define mkdir(__a, __b) mkdir(__a)
69 #define getpid() _getpid()
70 #define popen(__a, __b) _popen(__a, __b)
71 #define pclose(__a) _pclose(__a)
72 #define vsnprintf _vsnprintf
73 #define strtok_r(x, y, z) strtok(x, y)
80 #define S_ISDIR(x) (((x)&S_IFMT) == S_IFDIR)
81 #define S_ISREG(x) (((x)&S_IFMT) == S_IFREG)
84 #define S_ISGID 0002000
87 #define S_IWOTH 0000200
90 #define S_IWGRP 0000020
93 #define S_IWUSR 0000002
96 #define S_IROTH 0000400
99 #define S_IRGRP 0000040
102 #define S_IRUSR 0000004
105 #define WIFEXITED(x) 1
106 #define WEXITSTATUS(x) x
109 #define DATADIR "share"
110 #define LIBDIR "share"
111 #define CONFDIR "share"
114 #define LOCALDIR "var"
116 #define COMPRESS "/usr/bin/compress"
117 #define UNCOMPRESS "/usr/bin/uncompress"
118 #define GZIP "/bin/gzip"
119 #define GUNZIP "/bin/gunzip"
120 #define BZIP "/usr/bin/bzip2"
121 #define BUNZIP "/usr/bin/bunzip2"
124 #define PLUGIN_SUFFIX ".dll"
135 #define NAMLEN(dirent) strlen((dirent)->d_name)
142 struct _finddata_t fileinfo;
148 #define socklen_t int
157 extern int strncasecmp(
const char *s1,
const char *s2,
int n);
158 extern int strcasecmp(
const char *s1,
const char *s2);
167 #define sleep(x) Sleep(x*1000)
int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info)
DIR * opendir(const char *)
void service_unregister()
int strcasecmp(const char *s1, const char *s2)
char d_name[_MAX_FNAME+1]
int strncasecmp(const char *s1, const char *s2, int n)
struct dirent * readdir(DIR *)