Files
nim-ngtcp2/prelude.nim
diegomrsantos 024ce6202c chore: upgrade ngtcp2 to 1.6.0 (#6)
Upgrades ngtcp2 to 1.6.0 with all the necessary fixes.
2024-08-16 13:35:36 +02:00

18 lines
378 B
Nim

import os
import strformat
# Socket definitions
import nativesockets
when defined(windows):
{.passl: "-lws2_32".}
else:
{.passC: "-DHAVE_UNISTD_H".}
# C include directories
const root = currentSourcePath.parentDir
const sourceInclude = root/"sources"/"lib"/"includes"
const buildInclude = root/"build"/"lib"/"includes"
{.passc: fmt"-I{sourceInclude} -I{buildInclude}".}