diff options
author | Rich Salz <rsalz@openssl.org> | 2015-01-12 17:29:26 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-01-12 17:30:54 -0500 |
commit | 6d23cf97443bfedf755341b4f2d0d7fce254e020 (patch) | |
tree | ef52ffc0029a579d35439f2dc0ba2deee966ed93 /crypto/thr_id.c | |
parent | 31d1d3741f16bd80ec25f72dcdbf6bbdc5664374 (diff) |
RT3548: Remove unsupported platforms
This last one for this ticket. Removes WIN16.
So long, MS_CALLBACK and MS_FAR. We won't miss you.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/thr_id.c')
-rw-r--r-- | crypto/thr_id.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/crypto/thr_id.c b/crypto/thr_id.c index 8de903326f..76eb0f0aeb 100644 --- a/crypto/thr_id.c +++ b/crypto/thr_id.c @@ -117,9 +117,9 @@ #include "cryptlib.h" #ifndef OPENSSL_NO_DEPRECATED -static unsigned long (MS_FAR *id_callback)(void)=0; +static unsigned long (*id_callback)(void)=0; #endif -static void (MS_FAR *threadid_callback)(CRYPTO_THREADID *)=0; +static void (*threadid_callback)(CRYPTO_THREADID *)=0; /* the memset() here and in set_pointer() seem overkill, but for the sake of * CRYPTO_THREADID_cmp() this avoids any platform silliness that might cause two @@ -195,9 +195,7 @@ void CRYPTO_THREADID_current(CRYPTO_THREADID *id) } #endif /* Else pick a backup */ -#ifdef OPENSSL_SYS_WIN16 - CRYPTO_THREADID_set_numeric(id, (unsigned long)GetCurrentTask()); -#elif defined(OPENSSL_SYS_WIN32) +#if defined(OPENSSL_SYS_WIN32) CRYPTO_THREADID_set_numeric(id, (unsigned long)GetCurrentThreadId()); #else /* For everything else, default to using the address of 'errno' */ @@ -237,9 +235,7 @@ unsigned long CRYPTO_thread_id(void) if (id_callback == NULL) { -#ifdef OPENSSL_SYS_WIN16 - ret=(unsigned long)GetCurrentTask(); -#elif defined(OPENSSL_SYS_WIN32) +#if defined(OPENSSL_SYS_WIN32) ret=(unsigned long)GetCurrentThreadId(); #elif defined(GETPID_IS_MEANINGLESS) ret=1L; |