Convert ASYNC code to use new Thread API
[oweals/openssl.git] / crypto / async / arch / async_win.h
index 77e41e405b9e8486465ae845030ea8b2b9f0b085..42873307d08b32197b470e3a452a4ded95041da1 100644 (file)
@@ -1,4 +1,3 @@
-/* crypto/async/arch/async_win.h */
 /*
  * Written by Matt Caswell (matt@openssl.org) for the OpenSSL project.
  */
  * ====================================================================
  */
 
-#include <openssl/async.h>
-
 /*
  * This is the same detection used in cryptlib to set up the thread local
  * storage that we depend on, so just copy that
  */
-#if defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(OPENSSL_NO_ASYNC)
+#include <openssl/async.h>
 # define ASYNC_WIN
 # define ASYNC_ARCH
 
@@ -75,13 +73,7 @@ typedef struct async_fibre_st {
         ((c)->fibre = CreateFiber(0, async_start_func_win, 0))
 # define async_fibre_free(f)             (DeleteFiber((f)->fibre))
 
-async_ctx *async_get_ctx(void);
-int async_set_ctx(async_ctx *ctx);
-
 int async_fibre_init_dispatcher(async_fibre *fibre);
 VOID CALLBACK async_start_func_win(PVOID unused);
 
-async_pool *async_get_pool(void);
-int async_set_pool(async_pool *pool);
-
 #endif