--- a/libpurple/win32/libc_interface.c Wed Oct 30 23:25:39 2019 -0400
+++ b/libpurple/win32/libc_interface.c Wed Oct 30 23:28:43 2019 -0400
@@ -488,18 +488,3 @@
-struct tm * wpurple_localtime_r (const time_t *time, struct tm *resultp) {
- tmptm = localtime(time);
- return memcpy(resultp, tmptm, sizeof(struct tm));
--- a/libpurple/win32/libc_interface.h Wed Oct 30 23:25:39 2019 -0400
+++ b/libpurple/win32/libc_interface.h Wed Oct 30 23:28:43 2019 -0400
@@ -103,8 +103,6 @@
(unsigned int)ntohl( netlong )
-#define hstrerror( herror ) \
-wpurple_strerror( errno )
#define strerror( errornum ) \
wpurple_strerror( errornum )
#define g_strerror( errornum ) \
@@ -120,15 +118,9 @@
-#define sleep(x) Sleep((x)*1000)
#define gethostname( name, size ) \
wpurple_gethostname( name, size )
-#define fsync(fd) _commit(fd)
#define gettimeofday( timeval, timezone ) \
wpurple_gettimeofday( timeval, timezone )
@@ -140,12 +132,6 @@
# define vsnprintf _vsnprintf
-/* XXX: it may be also defined by pthread.h */
-#define localtime_r( time, resultp ) \
-wpurple_localtime_r( time, resultp )
#endif /* PURPLE_WIN32_LIBC_INTERFACE_H */
--- a/libpurple/win32/libc_internal.h Wed Oct 30 23:25:39 2019 -0400
+++ b/libpurple/win32/libc_internal.h Wed Oct 30 23:28:43 2019 -0400
@@ -101,10 +101,6 @@
int wpurple_gettimeofday(struct timeval *p, struct timezone *z);
-struct tm *wpurple_localtime_r(const time_t *time, struct tm *resultp);
int wpurple_read(int fd, void *buf, unsigned int size);
int wpurple_write(int fd, const void *buf, unsigned int size);