Crypto build fixes for Windows
Hi,
This MR attempts to improve building the crypto support in libexslt on Windows, by:
- Eliminate a compiler warning when building
crypto.c
on Windows when callingFormatMessageA()
, which may raise alarm to some. - Relax the check in the CMake build system to not require gcrypt to enable crypto support on native Windows, since the Windows APIs are used instead of gcrypt on such builds. For the original Windows Makefile-based buildsystem in
win32/
, crypto support is even enabled by default as a result, but I think I will leave that option alone for the CMake buildsystem.
With blessings, thank you!
Edited by Chun-wei Fan