_lrotl and _lrotr are defined in MSVC but nowhere else that we know
authorRichard Levitte <levitte@openssl.org>
Sat, 1 Apr 2000 10:39:33 +0000 (10:39 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 1 Apr 2000 10:39:33 +0000 (10:39 +0000)
off.

crypto/cast/cast_lcl.h
crypto/des/des_locl.h
crypto/rc5/rc5_locl.h

index cfe3842e91f94dc7736556093b048cf57ca37664..5fab8a43f6b48c033dd01068d4bff64fd0ab6bc3 100644 (file)
                          *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
                          *((c)++)=(unsigned char)(((l)     )&0xff))
 
-#if defined(WIN32)
+#if defined(WIN32) && defined(_MSC_VER)
 #define ROTL(a,n)     (_lrotl(a,n))
 #else
 #define ROTL(a,n)     ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n))))
index 4dfed199a71ca22407a1c87d2a1ec7333ae83d5d..1ace8f5930b42ee8283ae18cd34a424cf66f0193 100644 (file)
                                } \
                        }
 
-#if defined(WIN32)
+#if defined(WIN32) && defined(_MSC_VER)
 #define        ROTATE(a,n)     (_lrotr(a,n))
 #else
 #define        ROTATE(a,n)     (((a)>>(n))+((a)<<(32-(n))))
index 718c6162eab9b8abf87a3b869bd884d3880b2027..ec33829c971e86bea06881124b7d79c41c1454a4 100644 (file)
                          *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
                          *((c)++)=(unsigned char)(((l)     )&0xff))
 
-#if defined(WIN32)
+#if defined(WIN32) && defined(_MSC_VER)
 #define ROTATE_l32(a,n)     _lrotl(a,n)
 #define ROTATE_r32(a,n)     _lrotr(a,n)
 #else