diff options
author | Araq <rumpf_a@web.de> | 2012-10-30 22:29:03 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-10-30 22:29:03 +0100 |
commit | 2133fbfccef934ae0f8ffafe0ecf4ef378e4cacf (patch) | |
tree | f134579954e688260d9417e86e48427129430181 /lib | |
parent | 86ed9181570d16406e63754bd409c2b33c73b4a5 (diff) | |
download | Nim-2133fbfccef934ae0f8ffafe0ecf4ef378e4cacf.tar.gz |
bugfix: wrong assertions for C++ code generation; some solaris support; first steps to an effect system
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/nimbase.h | 2 | ||||
-rwxr-xr-x | lib/pure/sockets.nim | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index 69aa904db..74dd931e6 100755 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -470,4 +470,6 @@ static inline void GCGuard (void *ptr) { asm volatile ("" :: "X" (ptr)); } # define GC_GUARD #endif +typedef int assert_numbits[sizeof(NI) == sizeof(void*) && + NIM_INTBITS == sizeof(NI)*8 ? 1 : -1]; #endif diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index 4782ddd2e..f0d4cb6b8 100755 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -24,6 +24,9 @@ when defined(Windows): import winlean else: import posix + + when defined(solaris): + {.passl: "-lsocket -lnsl".} # Note: The enumerations are mapped to Window's constants. |