From: simon@yubico.com Date: Thu, 25 Nov 2010 11:57:22 +0000 (+0000) Subject: Fix compilation under Windows. X-Git-Tag: yubikey-personalisation_1.3.5-1~5^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d01bd7a2e513a19ec7b056719fed6f30b481917a;p=yubikey-personalization Fix compilation under Windows. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@266 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- 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)