diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-06-20 09:49:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-20 09:49:36 -0400 |
commit | 5b4ee475aa00bb30675e819a0096209e5e427668 (patch) | |
tree | 633b04a111458921fbd5908faed7f47641b9c362 /src/common/compat.c | |
parent | 456184c2a005d282df4bb1c92e0f3d80b52e99cb (diff) | |
download | tor-5b4ee475aa00bb30675e819a0096209e5e427668.tar.gz tor-5b4ee475aa00bb30675e819a0096209e5e427668.zip |
Remove code for Windows CE support
As far as I know, nobody has used this in ages. It would be a
pretty big surprise if it had worked.
Closes ticket 11446.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index e25ecc462d..6fb9c210e7 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -2485,14 +2485,12 @@ get_uname(void) "Unrecognized version of Windows [major=%d,minor=%d]", (int)info.dwMajorVersion,(int)info.dwMinorVersion); } -#if !defined (WINCE) #ifdef VER_NT_SERVER if (info.wProductType == VER_NT_SERVER || info.wProductType == VER_NT_DOMAIN_CONTROLLER) { strlcat(uname_result, " [server]", sizeof(uname_result)); } #endif -#endif #else strlcpy(uname_result, "Unknown platform", sizeof(uname_result)); #endif @@ -2697,15 +2695,8 @@ tor_gettimeofday(struct timeval *timeval) uint64_t ft_64; FILETIME ft_ft; } ft; -#if defined (WINCE) - /* wince do not have GetSystemTimeAsFileTime */ - SYSTEMTIME stime; - GetSystemTime(&stime); - SystemTimeToFileTime(&stime,&ft.ft_ft); -#else /* number of 100-nsec units since Jan 1, 1601 */ GetSystemTimeAsFileTime(&ft.ft_ft); -#endif if (ft.ft_64 < EPOCH_BIAS) { log_err(LD_GENERAL,"System time is before 1970; failing."); exit(1); |