diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-02-05 08:50:26 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-02-06 16:23:04 +0100 |
commit | 9f68541e0f55495d61dd9e583bec38740a247597 (patch) | |
tree | 55519e34159ac1eb691e080e4c1eab5b0e4847bd /libparc/parc/security/parc_Security.c | |
parent | b77148ddc3def71e6c412c3afb5f1c20be2d77cd (diff) |
[HICN-26] Windows compatibilty for libparc
Change-Id: I6ebff82a81a2bf42fa3bf210ff0e6e530ce21915
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libparc/parc/security/parc_Security.c')
-rw-r--r-- | libparc/parc/security/parc_Security.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libparc/parc/security/parc_Security.c b/libparc/parc/security/parc_Security.c index e5f7609d..999a41da 100644 --- a/libparc/parc/security/parc_Security.c +++ b/libparc/parc/security/parc_Security.c @@ -50,8 +50,10 @@ #error OpenSSL version must be at least 0.9.8 release #endif +#ifndef _WIN32 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif #include <openssl/evp.h> #include <openssl/err.h> @@ -120,8 +122,10 @@ _getThreadId(CRYPTO_THREADID *id) #elif defined(__linux__) // linux (at least ubuntu and redhat) uses unsigned long int CRYPTO_THREADID_set_numeric(id, threadid); +#elif _WIN32 + CRYPTO_THREADID_set_pointer(id, threadid.p); #else -#error Unsupported platform, only __APPLE__ and __linux__ supported +#error Unsupported platform, only __APPLE__, __linux__ and MSVC supported #endif } #endif @@ -206,4 +210,6 @@ parcSecurity_Fini(void) parcAssertTrue(unlockSuccessful, "Unable to unlock the PARC Security framework."); } +#ifndef _WIN32 #pragma GCC diagnostic pop +#endif
\ No newline at end of file |