if CRYPTOKI_EXPORTS is not defined don't add __declspec

this messes up the windows build since we're already using libtool for
the exports.
This commit is contained in:
Klas Lindfors
2016-08-12 15:09:49 +02:00
parent 56cb376b3c
commit 8e7a2796b9
+7 -1
View File
@@ -86,7 +86,13 @@ extern "C" {
#ifdef CRYPTOKI_EXPORTS
#define CK_SPEC __declspec(dllexport)
#else
#define CK_SPEC __declspec(dllimport)
/*
* Yubico: we're using libtool to declare exports, this
* messes up the build.
*
* #define CK_SPEC __declspec(dllimport)
*/
#define CK_SPEC
#endif
#else