diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 10:00:23 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:14 +0100 |
commit | bee435e09111f43dcc406160e9c9bdd8645fc86c (patch) | |
tree | 8ca133400350ede433cb110fef632a7905bf4129 /trust | |
parent | 61e0cb5dddb89ddab1d68791eb28d892c114622f (diff) |
Fix syntax errors in OS_WIN32 ifdefs
Diffstat (limited to 'trust')
-rw-r--r-- | trust/module.c | 6 | ||||
-rw-r--r-- | trust/tests/test-module.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/trust/module.c b/trust/module.c index 2583b2b..bf9c0db 100644 --- a/trust/module.c +++ b/trust/module.c @@ -34,6 +34,8 @@ #include "config.h" +#define CRYPTOKI_EXPORTS + #include "attrs.h" #define P11_DEBUG_FLAG P11_DEBUG_TRUST #include "debug.h" @@ -1545,13 +1547,13 @@ p11_trust_module_fini (void) #ifdef OS_WIN32 +BOOL WINAPI DllMain (HINSTANCE, DWORD, LPVOID); + BOOL WINAPI DllMain (HINSTANCE instance, DWORD reason, LPVOID reserved) { - LPVOID data; - switch (reason) { case DLL_PROCESS_ATTACH: p11_library_init (); diff --git a/trust/tests/test-module.c b/trust/tests/test-module.c index 42eea41..577ae5a 100644 --- a/trust/tests/test-module.c +++ b/trust/tests/test-module.c @@ -39,6 +39,8 @@ #include <stdio.h> #include <string.h> +#define CRYPTOKI_EXPORTS + #include "attrs.h" #include "checksum.h" #include "debug.h" |