mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
Enables use of NSGetEnviron for osx binary compatibility. Refs #965.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user