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> 46 #define snprintf _snprintf 50 #define MAXPATHLEN 256 55 #define inline __inline 56 #define unlink(__a) _unlink(__a) 57 #define mkdir(__a, __b) mkdir(__a) 58 #define getpid() _getpid() 59 #define popen(__a, __b) _popen(__a, __b) 60 #define pclose(__a) _pclose(__a) 61 #define vsnprintf _vsnprintf 62 #define strtok_r(x, y, z) strtok(x, y) 69 #define S_ISDIR(x) (((x)&S_IFMT) == S_IFDIR) 70 #define S_ISREG(x) (((x)&S_IFMT) == S_IFREG) 73 #define S_ISGID 0002000 76 #define S_IWOTH 0000200 79 #define S_IWGRP 0000020 82 #define S_IWUSR 0000002 85 #define S_IROTH 0000400 88 #define S_IRGRP 0000040 91 #define S_IRUSR 0000004 94 #define WIFEXITED(x) 1 95 #define WEXITSTATUS(x) x 98 #define DATADIR "share" 99 #define LIBDIR "share" 100 #define CONFDIR "share" 103 #define LOCALDIR "var" 106 #define PLUGIN_SUFFIX ".dll" 117 #define NAMLEN(dirent) strlen((dirent)->d_name) 124 struct _finddata_t fileinfo;
130 #define socklen_t int 138 extern int strncasecmp(
const char *s1,
const char *s2,
int n);
139 extern int strcasecmp(
const char *s1,
const char *s2);
150 #define sleep(x) Sleep(x*1000) 170 #define atoll _atoi64 173 #define FMT64U "I64u" 176 #pragma warning(disable: 4244) 177 #pragma warning(disable: 4305)
DIR * opendir(const char *)
void service_unregister()
int strcasecmp(const char *s1, const char *s2)
char d_name[_MAX_FNAME+1]
unsigned __int64 uint64_t
int strncasecmp(const char *s1, const char *s2, int n)
struct dirent * readdir(DIR *)