mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 06:23:25 +00:00
styleCheck fixes [bugfix]
This commit is contained in:
@@ -20,10 +20,10 @@ when defined(linux) and not defined(android):
|
||||
# On Linux:
|
||||
# timer_{create,delete,settime,gettime},
|
||||
# clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt
|
||||
{.passL: "-lrt".}
|
||||
{.passl: "-lrt".}
|
||||
when defined(solaris):
|
||||
# On Solaris hstrerror lives in libresolv
|
||||
{.passL: "-lresolv".}
|
||||
{.passl: "-lresolv".}
|
||||
|
||||
type
|
||||
DIR* {.importc: "DIR", header: "<dirent.h>",
|
||||
|
||||
@@ -14,9 +14,9 @@ import times, nativesockets
|
||||
when defined(windows):
|
||||
import winlean
|
||||
when defined(gcc):
|
||||
{.passL: "-lws2_32".}
|
||||
{.passl: "-lws2_32".}
|
||||
elif defined(vcc):
|
||||
{.passL: "ws2_32.lib".}
|
||||
{.passl: "ws2_32.lib".}
|
||||
const platformHeaders = """#include <winsock2.h>
|
||||
#include <windows.h>"""
|
||||
const EAGAIN = WSAEWOULDBLOCK
|
||||
|
||||
Reference in New Issue
Block a user