Merge pull request #7363 from kaleb-himes/WinCE-supporting-work

Manually check-in pre-operational-testing changes for WinCE port effort
pull/6827/head
JacobBarthelmeh 2024-06-21 14:02:48 -06:00 committed by GitHub
commit c9d83babe0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 761 additions and 262 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)
{ {

View File

@ -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