diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-10-23 11:18:11 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-10-23 11:18:11 +0200 |
commit | 3a6a8278ce57490b41c0d3b0e7593b2bc84db1df (patch) | |
tree | d27adfe39f92404d0ab9c982439f91b4eef43308 /ACE/ace/OS_NS_stdlib.inl | |
parent | 55dacbd2cfbc86ed4a3e3d99e395384a95bacce8 (diff) | |
download | ATCD-3a6a8278ce57490b41c0d3b0e7593b2bc84db1df.tar.gz |
Adapt for msvc deprecated API and use their ISO alternative
* ACE/ace/OS_NS_stdio.inl:
* ACE/ace/OS_NS_stdlib.inl:
* ACE/ace/OS_NS_sys_stat.inl:
* ACE/ace/OS_NS_unistd.inl:
* ACE/ace/config-win32-msvc-14.h:
Diffstat (limited to 'ACE/ace/OS_NS_stdlib.inl')
-rw-r--r-- | ACE/ace/OS_NS_stdlib.inl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_stdlib.inl b/ACE/ace/OS_NS_stdlib.inl index 5417a04170c..11d466130d1 100644 --- a/ACE/ace/OS_NS_stdlib.inl +++ b/ACE/ace/OS_NS_stdlib.inl @@ -336,6 +336,8 @@ ACE_OS::putenv (const char *string) #elif defined (ACE_LACKS_PUTENV) ACE_UNUSED_ARG (string); ACE_NOTSUP_RETURN (0); +#elif defined (ACE_PUTENV_EQUIVALENT) + return ACE_PUTENV_EQUIVALENT (s, t, len); #else /* ! ACE_HAS_WINCE */ ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::putenv (const_cast <char *> (string)), int, -1); #endif /* ACE_LACKS_PUTENV && ACE_HAS_SETENV */ @@ -378,6 +380,8 @@ ACE_OS::putenv (const wchar_t *string) #if defined (ACE_LACKS_PUTENV) ACE_UNUSED_ARG (string); ACE_NOTSUP_RETURN (-1); +#elif defined (ACE_PUTENV_EQUIVALENT) + return ACE_PUTENV_EQUIVALENT (s, t, len); #else ACE_OSCALL_RETURN (::_wputenv (string), int, -1); #endif /* ACE_LACKS_PUTENV */ |