Loading changes/no-wince 0 → 100644 +4 −0 Original line number Diff line number Diff line o Removed platform support: - We no longer include special code to build on Windows CE; as far as we know, nobody has used Tor on Windows CE in a very long time. Closes ticket 11446. src/common/compat.c +0 −9 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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); Loading src/common/compat.h +0 −15 Original line number Diff line number Diff line Loading @@ -56,21 +56,6 @@ #include <stdio.h> #include <errno.h> #if defined (WINCE) #include <fcntl.h> #include <io.h> #include <math.h> #include <projects.h> /* this is not exported as W .... */ #define SHGetPathFromIDListW SHGetPathFromIDList /* wcecompat has vasprintf */ #define HAVE_VASPRINTF /* no service here */ #ifdef NT_SERVICE #undef NT_SERVICE #endif #endif // WINCE #ifndef NULL_REP_IS_ZERO_BYTES #error "It seems your platform does not represent NULL as zero. We can't cope." #endif Loading src/common/tortls.c +0 −4 Original line number Diff line number Diff line Loading @@ -16,10 +16,6 @@ #include "orconfig.h" #if defined (WINCE) #include <WinSock2.h> #endif #include <assert.h> #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/ #ifndef _WIN32_WINNT Loading src/common/util.c +1 −1 Original line number Diff line number Diff line Loading @@ -1893,7 +1893,7 @@ check_private_dir(const char *dirname, cpd_check_t check, } if (check & CPD_CREATE) { log_info(LD_GENERAL, "Creating directory %s", dirname); #if defined (_WIN32) && !defined (WINCE) #if defined (_WIN32) r = mkdir(dirname); #else r = mkdir(dirname, 0700); Loading Loading
changes/no-wince 0 → 100644 +4 −0 Original line number Diff line number Diff line o Removed platform support: - We no longer include special code to build on Windows CE; as far as we know, nobody has used Tor on Windows CE in a very long time. Closes ticket 11446.
src/common/compat.c +0 −9 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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); Loading
src/common/compat.h +0 −15 Original line number Diff line number Diff line Loading @@ -56,21 +56,6 @@ #include <stdio.h> #include <errno.h> #if defined (WINCE) #include <fcntl.h> #include <io.h> #include <math.h> #include <projects.h> /* this is not exported as W .... */ #define SHGetPathFromIDListW SHGetPathFromIDList /* wcecompat has vasprintf */ #define HAVE_VASPRINTF /* no service here */ #ifdef NT_SERVICE #undef NT_SERVICE #endif #endif // WINCE #ifndef NULL_REP_IS_ZERO_BYTES #error "It seems your platform does not represent NULL as zero. We can't cope." #endif Loading
src/common/tortls.c +0 −4 Original line number Diff line number Diff line Loading @@ -16,10 +16,6 @@ #include "orconfig.h" #if defined (WINCE) #include <WinSock2.h> #endif #include <assert.h> #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/ #ifndef _WIN32_WINNT Loading
src/common/util.c +1 −1 Original line number Diff line number Diff line Loading @@ -1893,7 +1893,7 @@ check_private_dir(const char *dirname, cpd_check_t check, } if (check & CPD_CREATE) { log_info(LD_GENERAL, "Creating directory %s", dirname); #if defined (_WIN32) && !defined (WINCE) #if defined (_WIN32) r = mkdir(dirname); #else r = mkdir(dirname, 0700); Loading