bugfix: len openarray

This commit is contained in:
Andreas Rumpf 2010-03-10 16:33:55 +01:00
commit 96b828a386
8 changed files with 74 additions and 13 deletions

View file

@ -0,0 +1,17 @@
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)))