styleCheck fixes [bugfix]
This commit is contained in:
parent
edbe02b4e1
commit
52cbd0c558
2 changed files with 4 additions and 4 deletions
|
|
@ -20,10 +20,10 @@ when defined(linux) and not defined(android):
|
||||||
# On Linux:
|
# On Linux:
|
||||||
# timer_{create,delete,settime,gettime},
|
# timer_{create,delete,settime,gettime},
|
||||||
# clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt
|
# clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt
|
||||||
{.passL: "-lrt".}
|
{.passl: "-lrt".}
|
||||||
when defined(solaris):
|
when defined(solaris):
|
||||||
# On Solaris hstrerror lives in libresolv
|
# On Solaris hstrerror lives in libresolv
|
||||||
{.passL: "-lresolv".}
|
{.passl: "-lresolv".}
|
||||||
|
|
||||||
type
|
type
|
||||||
DIR* {.importc: "DIR", header: "<dirent.h>",
|
DIR* {.importc: "DIR", header: "<dirent.h>",
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ import times, nativesockets
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
import winlean
|
import winlean
|
||||||
when defined(gcc):
|
when defined(gcc):
|
||||||
{.passL: "-lws2_32".}
|
{.passl: "-lws2_32".}
|
||||||
elif defined(vcc):
|
elif defined(vcc):
|
||||||
{.passL: "ws2_32.lib".}
|
{.passl: "ws2_32.lib".}
|
||||||
const platformHeaders = """#include <winsock2.h>
|
const platformHeaders = """#include <winsock2.h>
|
||||||
#include <windows.h>"""
|
#include <windows.h>"""
|
||||||
const EAGAIN = WSAEWOULDBLOCK
|
const EAGAIN = WSAEWOULDBLOCK
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue