Skip to content

Commit 914c0f3

Browse files
committed
chore: make lpthread optional if using windows with clang
Also removes _WIN32_WINNT... maybe it's unneeded now?
1 parent 6ae249c commit 914c0f3

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lsquic/lsquic_ffi.nim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# SPDX-License-Identifier: Apache-2.0 OR MIT
22
# Copyright (c) Status Research & Development GmbH
33

4-
when defined(windows):
5-
{.passc: "-D_WIN32_WINNT=0x0600".}
6-
{.passl: "-lws2_32".}
7-
{.passl: "-lpthread".}
4+
when defined(windows) and defined(clang):
5+
{.passl: "-lpthread".}
86

97
import std/[os, strformat, strutils]
108
import chronos/osdefs

prelude.nim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0 OR MIT
22
# Copyright (c) Status Research & Development GmbH
33

4-
when defined(windows):
5-
{.passc: "-D_WIN32_WINNT=0x0600".}
6-
{.passl: "-lws2_32".}
4+
when defined(windows) and defined(clang):
75
{.passl: "-lpthread".}
86

97
import std/[os, strformat, strutils]

0 commit comments

Comments
 (0)