mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #7363 from kaleb-himes/WinCE-supporting-work
Manually check-in pre-operational-testing changes for WinCE port effortpull/6827/head
commit
c9d83babe0
File diff suppressed because it is too large
Load Diff
|
@ -3430,7 +3430,8 @@ char* mystrnstr(const char* s1, const char* s2, unsigned int n)
|
||||||
#ifndef SINGLE_THREADED
|
#ifndef SINGLE_THREADED
|
||||||
|
|
||||||
/* Environment-specific multi-thread implementation check */
|
/* Environment-specific multi-thread implementation check */
|
||||||
#if defined(USE_WINDOWS_API) && !defined(WOLFSSL_PTHREADS)
|
#if defined(USE_WINDOWS_API) && !defined(WOLFSSL_PTHREADS) && \
|
||||||
|
!defined(_WIN32_WCE)
|
||||||
int wolfSSL_NewThread(THREAD_TYPE* thread,
|
int wolfSSL_NewThread(THREAD_TYPE* thread,
|
||||||
THREAD_CB cb, void* arg)
|
THREAD_CB cb, void* arg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
#endif
|
#endif
|
||||||
#endif /* WOLFSSL_SGX */
|
#endif /* WOLFSSL_SGX */
|
||||||
#endif
|
#endif
|
||||||
#ifndef SINGLE_THREADED
|
#if !defined(SINGLE_THREADED) && !defined(_WIN32_WCE)
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#endif
|
#endif
|
||||||
#elif defined(THREADX)
|
#elif defined(THREADX)
|
||||||
|
@ -342,7 +342,11 @@
|
||||||
#endif
|
#endif
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* Use MSVC compiler intrinsics for atomic ops */
|
/* Use MSVC compiler intrinsics for atomic ops */
|
||||||
#include <intrin.h>
|
#ifdef _WIN32_WCE
|
||||||
|
#include <armintr.h>
|
||||||
|
#else
|
||||||
|
#include <intrin.h>
|
||||||
|
#endif
|
||||||
typedef volatile long wolfSSL_Atomic_Int;
|
typedef volatile long wolfSSL_Atomic_Int;
|
||||||
#define WOLFSSL_ATOMIC_OPS
|
#define WOLFSSL_ATOMIC_OPS
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue