diff options
author | Adam <Adam@anope.org> | 2011-04-08 03:48:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-04-10 17:54:20 -0400 |
commit | b56565eac2d7207c88c53054cb1096519ec7fba9 (patch) | |
tree | cd0f10a47dd002157553d96e2ef91ea5d620eadc /win/inspircd_win32wrapper.h | |
parent | f8588b112fe6ef1095e40fcd64f85e670d96bc92 (diff) |
Fixed Windows build on VS 2010
Diffstat (limited to 'win/inspircd_win32wrapper.h')
-rw-r--r-- | win/inspircd_win32wrapper.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 3f16280fd..36307ee00 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -140,6 +140,8 @@ CoreExport const char * insp_inet_ntop(int af, const void * src, char * dst, soc /* Since when does the ISO C++ standard *remove* C functions?! */ #define mkdir(file,mode) _mkdir(file) +#define strncasecmp strnicmp + /* Unix-style sleep (argument is in seconds) */ __inline void sleep(int seconds) { Sleep(seconds * 1000); } @@ -165,7 +167,7 @@ struct option }; extern int optind; extern char optarg[514]; -int getopt_long_only (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind); +int getopt_long(int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind); /* Module Loading */ #define dlopen(path, state) (void*)LoadLibrary(path) @@ -189,6 +191,12 @@ struct DIR bool first; }; +struct timespec +{ + time_t tv_sec; + long tv_nsec; +}; + CoreExport DIR * opendir(const char * path); CoreExport dirent * readdir(DIR * handle); CoreExport void closedir(DIR * handle); @@ -246,6 +254,9 @@ CoreExport void FindDNS(std::string& server); CoreExport bool initwmi(); CoreExport void donewmi(); CoreExport int getcpu(); +CoreExport int random(); +CoreExport void srandom(unsigned seed); +CoreExport int gettimeofday(timeval *tv, void *); #endif |