_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 cfe3842..5fab8a4 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 4dfed19..1ace8f5 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 718c616..ec33829 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