summary refs log tree commit diff stats
path: root/tests/accept/compile/tmodulealias.nim
blob: a7d155e51d5228fa0158c9bced2a43102f0e1abe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  disabled: true
"""

when defined(windows):
  import winlean
else:
  import posix

when defined(Windows):
  template orig: expr = 
    winlean
else:
  template orig: expr = 
    posix

proc socket(domain, typ, protocol: int): int =
  result = orig.socket(ord(domain), ord(typ), ord(protocol)))