8 #define WIN32_LEAN_AND_MEAN 24 #define NAMLEN(dirent) strlen((dirent)->d_name) 27 extern DIR *
opendir(
const char *);
31 extern int strcasecmp(
const char *s1,
const char *s2);
32 extern const char *
strcasestr(
const char *s,
const char *find);
38 #define S_ISGID 0002000 41 #define S_IWOTH 0000200 44 #define S_IWGRP 0000020 47 #define S_IWUSR 0000002 50 #define S_IROTH 0000400 53 #define S_IRGRP 0000040 56 #define S_IRUSR 0000004 72 #if !defined(AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_) 73 #define AFX_STDAFX_H__31666CA1_2474_11D5_AE6C_F07569C10000__INCLUDED_ 76 #define VERSION "1.9.1 (trunk) snapshot 20061229" 78 #pragma warning(disable: 4761) 86 #define WIN32_LEAN_AND_MEAN 97 #include <sys/types.h> 103 #define snprintf _snprintf 107 #define MAXPATHLEN 256 109 #define HAVE_STRERROR 112 #define inline __inline 113 #define unlink(__a) _unlink(__a) 114 #define mkdir(__a, __b) mkdir(__a) 115 #define getpid() _getpid() 116 #define popen(__a, __b) _popen(__a, __b) 117 #define pclose(__a) _pclose(__a) 118 #define vsnprintf _vsnprintf 119 #define strtok_r(x, y, z) strtok(x, y) 126 #define S_ISDIR(x) (((x)&S_IFMT) == S_IFDIR) 127 #define S_ISREG(x) (((x)&S_IFMT) == S_IFREG) 129 #define WIFEXITED(x) 1 130 #define WEXITSTATUS(x) x 133 #define DATADIR "share" 134 #define LIBDIR "share" 135 #define CONFDIR "share" 138 #define LOCALDIR "var" 141 #define PLUGIN_SUFFIX ".dll" 148 unsigned short d_reclen;
149 char d_name[_MAX_FNAME+1];
152 #define NAMLEN(dirent) strlen((dirent)->d_name) 158 #define sleep(x) Sleep(x*1000) 166 typedef signed char int8_t;
167 typedef signed int int32_t;
168 typedef signed short int16_t;
169 typedef unsigned char uint8_t;
170 typedef unsigned int uint32_t;
171 typedef unsigned short uint16_t;
175 typedef unsigned __int64 uint64_t;
176 typedef signed __int64 int64_t;
178 #define atoll _atoi64 181 #define FMT64U "I64u" 184 #pragma warning(disable: 4244) 185 #pragma warning(disable: 4305)
DIR * opendir(const char *)
void service_unregister()
int strcasecmp(const char *s1, const char *s2)
const char * strcasestr(const char *s, const char *find)
struct dirent * readdir(DIR *)