X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fcast%2Fcast_lcl.h;h=e756021a33dc3bc4fc50095255e90240947da74a;hb=32cf5baeae21774db04af2ad2d74567a617c6fec;hp=cfe7aeaa1fb04effd05fc394e58a61fc09cee186;hpb=7d7d2cbcb02206f3393681f2bce198e11e2e185b;p=oweals%2Fopenssl.git diff --git a/crypto/cast/cast_lcl.h b/crypto/cast/cast_lcl.h index cfe7aeaa1f..e756021a33 100644 --- a/crypto/cast/cast_lcl.h +++ b/crypto/cast/cast_lcl.h @@ -56,11 +56,13 @@ * [including the GNU Public Licence.] */ -#ifdef WIN32 + +#include "e_os.h" + +#ifdef OPENSSL_SYS_WIN32 #include #endif -#include /* EXTERN */ #undef c2l #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ @@ -150,7 +152,7 @@ *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \ *((c)++)=(unsigned char)(((l) )&0xff)) -#if defined(WIN32) +#if defined(OPENSSL_SYS_WIN32) && defined(_MSC_VER) #define ROTL(a,n) (_lrotl(a,n)) #else #define ROTL(a,n) ((((a)<<(n))&0xffffffffL)|((a)>>(32-(n)))) @@ -215,11 +217,11 @@ } #endif -EXTERN CAST_LONG CAST_S_table0[256]; -EXTERN CAST_LONG CAST_S_table1[256]; -EXTERN CAST_LONG CAST_S_table2[256]; -EXTERN CAST_LONG CAST_S_table3[256]; -EXTERN CAST_LONG CAST_S_table4[256]; -EXTERN CAST_LONG CAST_S_table5[256]; -EXTERN CAST_LONG CAST_S_table6[256]; -EXTERN CAST_LONG CAST_S_table7[256]; +extern const CAST_LONG CAST_S_table0[256]; +extern const CAST_LONG CAST_S_table1[256]; +extern const CAST_LONG CAST_S_table2[256]; +extern const CAST_LONG CAST_S_table3[256]; +extern const CAST_LONG CAST_S_table4[256]; +extern const CAST_LONG CAST_S_table5[256]; +extern const CAST_LONG CAST_S_table6[256]; +extern const CAST_LONG CAST_S_table7[256];