From: Robert K. <may...@us...> - 2001-07-16 20:24:57
|
Update of /cvsroot/bitcollider/bitprint In directory usw-pr-cvs1:/tmp/cvs-serv25859 Modified Files: bitprint.c bitprint.h Log Message: Changed the characters to be upper case and ensured proper compilation undef cygwin Index: bitprint.c =================================================================== RCS file: /cvsroot/bitcollider/bitprint/bitprint.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** bitprint.c 2001/07/05 21:39:52 1.3 --- bitprint.c 2001/07/16 20:24:54 1.4 *************** *** 24,28 **** this assumption cannot be made. */ ! #ifdef _WIN32 #undef WORDS_BIGENDIAN #define SIZEOF_LONG 4 --- 24,28 ---- this assumption cannot be made. */ ! #if defined(_WIN32) || defined(__CYGWIN__) #undef WORDS_BIGENDIAN #define SIZEOF_LONG 4 *************** *** 100,111 **** /* FILE: tiger.h */ /* =================================================================== */ - #ifdef _WIN32 - typedef unsigned long int tword; - - #else - typedef unsigned long long int word64; - #endif - typedef unsigned long word32; typedef unsigned char byte; --- 100,104 ---- *************** *** 126,130 **** #define BASE32_LOOKUP_MAX 43 ! static unsigned char *base32Chars = "abcdefghijkmnpqrstuvwxyz23456789"; static unsigned char base32Lookup[BASE32_LOOKUP_MAX][2] = { --- 119,123 ---- #define BASE32_LOOKUP_MAX 43 ! static unsigned char *base32Chars = "ABCDEFGHIJKMNPQRSTUVWXYZ23456789"; static unsigned char base32Lookup[BASE32_LOOKUP_MAX][2] = { Index: bitprint.h =================================================================== RCS file: /cvsroot/bitcollider/bitprint/bitprint.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** bitprint.h 2001/07/05 20:42:40 1.2 --- bitprint.h 2001/07/16 20:24:54 1.3 *************** *** 29,36 **** --- 29,44 ---- /* =================================================================== */ + #if defined(_WIN32) + #if defined (_INTEGRAL_MAX_BITS) && (_INTEGRAL_MAX_BITS >= 64) typedef unsigned __int64 word64; #else #error __int64 type not supported + #endif + + #else + + typedef unsigned long long word64; + #endif |