From 2851e650d3bfcc5eb065adf7d88357c08b95ec2a Mon Sep 17 00:00:00 2001 From: Thomas Uhle Date: Mon, 8 Dec 2014 19:39:18 +0100 Subject: [PATCH] sharedspice.c, use GetCurrentThreadId() instead of GetTreadID() Thanks to Thomas Uhle for this patch, see http://sourceforge.net/p/ngspice/patches/26/ #26 GetThreadId() missing in older Win32 API, proposing to use GetCurrentThreadId() instead --- src/sharedspice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 0e2d54138..b3ea4ff2c 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -76,7 +76,7 @@ typedef SRWLOCK mutexType; typedef CRITICAL_SECTION mutexType; #endif #define thread_self() GetCurrentThread() -#define threadid_self() GetThreadId(GetCurrentThread()) +#define threadid_self() GetCurrentThreadId() typedef HANDLE threadId_t; #define WIN_THREADS #define THREADS