pkcs11: Fix build on Windows

Windows provides CreateMutexA/W with an alias called CreateMutex that
selects one of the other two based on the UNICODE constant.
This commit is contained in:
Michał Skalski 2021-01-24 21:14:57 +01:00 committed by Tobias Brunner
parent 8d8739ace6
commit f30187d422
1 changed files with 5 additions and 0 deletions

View File

@ -18,7 +18,12 @@
#include "pkcs11_library.h"
#ifndef WIN32
#include <dlfcn.h>
#else
/* macro defined by synchapi.h that maps to CreateMutexA/W */
#undef CreateMutex
#endif
#include <library.h>
#include <asn1/asn1.h>