On Thu, Dec 8, 2011 at 12:51 PM, Alon Bar-Lev <alon.bar...@gmail.com> wrote:
> On Thu, Dec 8, 2011 at 12:44 PM, David Sommerseth
> <openvpn.l...@topphemmelig.net> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 08/12/11 08:44, Alon Bar-Lev wrote:
>>> On Thu, Dec 8, 2011 at 2:13 AM, David Sommerseth <dav...@redhat.com>
>>> wrote:
>>>> +/* The POSIX access() function is called via _access() on Windows,
>>>> + * defined in io.h + */ +#define HAVE_ACCESS 1 +#define access
>>>> _access +#pragma warning(disable : 4996) /* Avoid Visual Studio to
>>>> complain about access(), which is redefined */
>>>
>>> Where is it defined? Anyway, won't it better: --- #ifdef access #undef
>>> access #endif #define access _access ---
>>
>> I tried that approach as well, and I still got this warning:
>> - -------------------------------------------------------------------------
>> options.c(2619) : warning C4996: '_access': The POSIX name for this item
>> is deprecated. Instead, use the ISO C++ conformant name: _access. See
>> online help for details.
>>        c:\Program Files (x86)\Microsoft Visual Studio
>> 9.0\VC\INCLUDE\io.h(185): see declaration of '_access'
>> options.c(2625) : warning C4996: '_access': The POSIX name for this item
>> is deprecated. Instead, use the ISO C++ conformant name: _access. See
>> online help for details.
>
> This is something else!
> Try defining _CRT_NONSTDC_NO_WARNINGS and _CRT_SECURE_NO_WARNINGS.
>
> Alon.

This of course should be only in your vcproj not anywhere in openvpn.

Alon.

Reply via email to