mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
moved wince related includes and defs to compat.h where possible, removed unused/redundant wince includes
This commit is contained in:
@@ -22,10 +22,8 @@
|
||||
#ifdef MS_WINDOWS
|
||||
#include <process.h>
|
||||
#include <windows.h>
|
||||
#if !defined (WINCE)
|
||||
#include <sys/locking.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNAME
|
||||
#include <sys/utsname.h>
|
||||
|
||||
@@ -51,6 +51,22 @@
|
||||
#include <netinet6/in6.h>
|
||||
#endif
|
||||
|
||||
#if defined (WINCE)
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <math.h>
|
||||
#include <projects.h>
|
||||
#define snprintf _snprintf
|
||||
/* 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
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
|
||||
#include "orconfig.h"
|
||||
|
||||
#if defined (WINCE)
|
||||
#include <WinSock2.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/ssl3.h>
|
||||
|
||||
@@ -24,10 +24,6 @@
|
||||
#include <event.h>
|
||||
#endif
|
||||
|
||||
#if defined (WINCE)
|
||||
#include <projects.h>
|
||||
#endif
|
||||
|
||||
void evdns_shutdown(int);
|
||||
|
||||
/********* PROTOTYPES **********/
|
||||
|
||||
@@ -88,11 +88,18 @@
|
||||
#define HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the `strlcat' function. */
|
||||
#if defined (WINCE)
|
||||
#define HAVE_STRLCAT
|
||||
#else
|
||||
#undef HAVE_STRLCAT
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the `strlcpy' function. */
|
||||
#if defined (WINCE)
|
||||
#define HAVE_STRLCPY
|
||||
#else
|
||||
#undef HAVE_STRLCPY
|
||||
|
||||
#endif
|
||||
/* Define to 1 if you have the `strptime' function. */
|
||||
#undef HAVE_STRPTIME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user