From d01bd7a2e513a19ec7b056719fed6f30b481917a Mon Sep 17 00:00:00 2001 From: "simon@yubico.com" Date: Thu, 25 Nov 2010 11:57:22 +0000 Subject: [PATCH] Fix compilation under Windows. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@266 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykcore/yktsd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ykcore/yktsd.h b/ykcore/yktsd.h index 834a719..615e49a 100644 --- a/ykcore/yktsd.h +++ b/ykcore/yktsd.h @@ -2,6 +2,7 @@ /* Note: this file is copied from Levitte Programming's LPlib and reworked for ykcore */ /* + * Copyright (c) 2010 Simon Josefsson * Copyright (c) 2003, 2004 Richard Levitte . * All rights reserved. * @@ -33,8 +34,9 @@ /* Define thread-specific data primitives */ #if defined _WIN32 #include +#include #define yk__TSD_TYPE DWORD -#define yk__TSD_ALLOC(key) ((key = TlsAlloc()) == TLS_OUT_OF_INDEXES ? EAGAIN : 0) +#define yk__TSD_ALLOC(key,nop) ((key = TlsAlloc()) == TLS_OUT_OF_INDEXES ? EAGAIN : 0) #define yk__TSD_FREE(key) (!TlsFree(key)) #define yk__TSD_SET(key,value) (!TlsSetValue(key,value)) #define yk__TSD_GET(key) TlsGetValue(key) -- 2.39.5