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

Manually check-in pre-operational-testing changes for WinCE port effort
This commit is contained in:
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
IDE/WINCE
wolfcrypt/src
wolfssl/wolfcrypt

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
/* 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,
THREAD_CB cb, void* arg)
{

@ -80,7 +80,7 @@
#endif
#endif /* WOLFSSL_SGX */
#endif
#ifndef SINGLE_THREADED
#if !defined(SINGLE_THREADED) && !defined(_WIN32_WCE)
#include <process.h>
#endif
#elif defined(THREADX)
@ -342,7 +342,11 @@
#endif
#elif defined(_MSC_VER)
/* 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;
#define WOLFSSL_ATOMIC_OPS
#endif