diff options
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r-- | src/win32/windows.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp index dcdf9d1a9..f2a1da443 100644 --- a/src/win32/windows.cpp +++ b/src/win32/windows.cpp @@ -64,22 +64,6 @@ USHORT WindowsGetLanguage(const Anope::string &lang) return LANG_NEUTRAL; } -/** Like gettimeofday(), but it works on Windows. - * @param tv A timeval struct - * @param tz Should be NULL, it is not used - * @return 0 on success - */ -int gettimeofday(timeval *tv, void *) -{ - SYSTEMTIME st; - GetSystemTime(&st); - - tv->tv_sec = Anope::CurTime; - tv->tv_usec = st.wMilliseconds; - - return 0; -} - int setenv(const char *name, const char *value, int overwrite) { return SetEnvironmentVariable(name, value); |