summary refs log blame commit diff stats
path: root/tests/accept/compile/tmodulealias.nim
blob: a7d155e51d5228fa0158c9bced2a43102f0e1abe (plain) (tree)
1
2
3


                















                                                             
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)))