boostorg / winapi

Windows API declarations without <windows.h>, for internal Boost use.
63 stars 55 forks source link

Fix compilation with WIN32_LEAN_AND_MEAN #11

Closed MarcelRaad closed 8 years ago

MarcelRaad commented 8 years ago

If WIN32_LEAN_AND_MEAN is defined, wincrypt.h is not included in windows.h. Always explicitly including wincrypt.h when BOOST_USE_WINDOWS_H is defined doesn't hurt anyway, as this is where the functions used here are defined.

Tested with clang-cl and Windows SDK 10.