"Thomas J. Hruska" <shineli...@shininglightpro.com> wrote:

Is, IMO, easier and more informative than using Google.  Results in:

apps\apps.c:            if (check_winnt())
crypto\bio\bss_log.c:   if (check_winnt())
crypto\cryptlib.c:    if (check_winnt() && OPENSSL_isservice() > 0)
crypto\rand\rand_win.c:  if (check_winnt() && OPENSSL_isservice()>0)
e_os.h:#  define check_winnt() (1)
e_os.h:#  define check_winnt() (GetVersion() < 0x80000000)

The full lines are:

 #if defined(_MSC_VER) && _MSC_VER>=1800
 #  define check_winnt() (1)
 #  define check_winnt() (GetVersion() < 0x80000000)

So what if I use MSVC v16 to build and run on Win-Vista+?
Maybe the code should test the WINVER/_WIN32_WINNT
versions before testing _MSC_VER?

OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to