Skip to content

Commit 8867f48

Browse files
author
gojimmypi
committed
Revert #6536 types.h one line HAVE_PTHREAD
1 parent 9a4237e commit 8867f48

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,8 @@ typedef struct w64wrapper {
13541354
typedef unsigned int THREAD_RETURN;
13551355
typedef size_t THREAD_TYPE;
13561356
#define WOLFSSL_THREAD
1357-
#elif defined(HAVE_PTHREAD)
1357+
#elif (defined(_POSIX_THREADS) || defined(HAVE_PTHREAD)) && \
1358+
!defined(__MINGW32__)
13581359
typedef void* THREAD_RETURN;
13591360
typedef pthread_t THREAD_TYPE;
13601361
#define WOLFSSL_THREAD

0 commit comments

Comments
 (0)