summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-03-16 10:36:45 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-03-16 10:36:45 +0100
commitb12ce48c7876b252d6e64f795dcf839c811ed6fb (patch)
tree31c0a076a39c55e13bcfbeadc04f3bf4cca5485c /lib
parent327b56d5e163d1f7423f1720af7d90e1c9819413 (diff)
parentff94ce9d0b5338dc3985910c6c2a63f8feeafe8d (diff)
downloadNim-b12ce48c7876b252d6e64f795dcf839c811ed6fb.tar.gz
Merge pull request #2339 from gradha/pr_fixes_osx_environ_use
Enables use of NSGetEnviron for osx binary compatibility. Refs #965.
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index d2e112c18..82d6177e1 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -1121,8 +1121,8 @@ when defined(windows):
 
 else:
   const
-    useNSGetEnviron = defined(macosx) and
-      (defined(createNimRtl) or defined(useNimRtl))
+    useNSGetEnviron = defined(macosx)
+
   when useNSGetEnviron:
     # From the manual:
     # Shared libraries and bundles don't have direct access to environ,