From 3afe34468f82cc511577c02f675fba3452db9cf0 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Tue, 19 Jun 2018 19:38:05 +0900 Subject: [PATCH] Reuse code in linux and amd64 --- lib/system/threads.nim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 350fe5d0c..df145628b 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -176,7 +176,7 @@ else: else: type Time = int - when defined(linux) and defined(amd64): + when defined(linux) and defined(amd64) and defined(nintendoswitch): type SysThread* {.importc: "pthread_t", header: "" .} = distinct culong @@ -185,14 +185,6 @@ else: abi: array[56 div sizeof(clong), clong] ThreadVarSlot {.importc: "pthread_key_t", header: "".} = distinct cuint - elif defined(nintendoswitch): - type - SysThread* {.importc: "pthread_t", - header: "" .} = distinct cuint - Pthread_attr {.importc: "pthread_attr_t", - header: "".} = object - ThreadVarSlot {.importc: "pthread_key_t", - header: "".} = distinct cuint else: type SysThread* {.importc: "pthread_t", header: "".} = object