From: Simon Josefsson Date: Thu, 25 Nov 2010 11:57:22 +0000 (+0000) Subject: Fix compilation under Windows. X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87b6cedaeb113c5504c90e3084668e121ecf9f4;p=yubikey-personalization.old Fix compilation under Windows. --- 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)