From 19fec985e98707cebf11c3fce2531df1c2a666dd Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 28 Nov 2016 00:31:48 +0100 Subject: fix more platform define checks Change-Id: I2e125770fc6c21141c45ccc057d95fada8ccf74c --- onlineupdate/source/libmar/verify/cryptox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'onlineupdate') diff --git a/onlineupdate/source/libmar/verify/cryptox.c b/onlineupdate/source/libmar/verify/cryptox.c index f71c4cef1b06..7edf8bea233d 100644 --- a/onlineupdate/source/libmar/verify/cryptox.c +++ b/onlineupdate/source/libmar/verify/cryptox.c @@ -13,8 +13,10 @@ #if defined(MAR_NSS) +#ifdef _WIN32 #pragma warning(push) #pragma warning(disable: 4204) +#endif /** * Loads the public key for the specified cert name from the NSS store. @@ -270,7 +272,9 @@ CryptoAPI_VerifyUpdate(HCRYPTHASH* hash, BYTE *buf, DWORD len) return result ? CryptoX_Success : CryptoX_Error; } +#ifdef _WIN32 #pragma warning(pop) +#endif #endif -- cgit