Reuse code in linux and amd64
This commit is contained in:
parent
f7ec3438f2
commit
3afe34468f
1 changed files with 1 additions and 9 deletions
|
|
@ -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: "<sys/types.h>" .} = distinct culong
|
||||
|
|
@ -185,14 +185,6 @@ else:
|
|||
abi: array[56 div sizeof(clong), clong]
|
||||
ThreadVarSlot {.importc: "pthread_key_t",
|
||||
header: "<sys/types.h>".} = distinct cuint
|
||||
elif defined(nintendoswitch):
|
||||
type
|
||||
SysThread* {.importc: "pthread_t",
|
||||
header: "<sys/types.h>" .} = distinct cuint
|
||||
Pthread_attr {.importc: "pthread_attr_t",
|
||||
header: "<sys/types.h>".} = object
|
||||
ThreadVarSlot {.importc: "pthread_key_t",
|
||||
header: "<sys/types.h>".} = distinct cuint
|
||||
else:
|
||||
type
|
||||
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue