Add thread-locals for WIN32

This commit is contained in:
Nicolas Williams
2016-04-14 14:38:49 -05:00
parent fca9bc45e2
commit 2f0c45f784
7 changed files with 408 additions and 5 deletions

View File

@@ -33,6 +33,10 @@
* SUCH DAMAGE.
*/
#if defined(HEIM_BASE_MAINTAINER) && !defined(WIN33) && defined(ENABLE_PTHREAD_SUPPORT)
#define HEIM_WIN32_TLS
#endif
typedef void (*heim_type_init)(void *);
typedef heim_object_t (*heim_type_copy)(void *);
typedef int (*heim_type_cmp)(void *, void *);