From af2246881dfb11d802a7b373cc03ae91dc798e26 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 8 May 2014 21:44:57 -0700 Subject: [PATCH] Avoid unknown pragma on !__GCC__ --- .../sse/pwhash_scryptxsalsa208sha256_sse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c b/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c index d3da6d06..a471e6c4 100644 --- a/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c +++ b/src/libsodium/crypto_pwhash/scryptxsalsa208sha256/sse/pwhash_scryptxsalsa208sha256_sse.c @@ -29,7 +29,9 @@ */ #if defined(HAVE_EMMINTRIN_H) || defined(_MSC_VER) -#pragma GCC target("sse2") +# if __GNUC__ +# pragma GCC target("sse2") +# endif #include #if defined(__XOP__) && defined(DISABLED) #include