Enables use of NSGetEnviron for osx binary compatibility. Refs #965.

This commit is contained in:
Grzegorz Adam Hankiewicz
2015-03-14 20:50:21 +01:00
parent 2f4472963f
commit ff94ce9d0b

View File

@@ -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,