From: Jarkko Hietaniemi Date: Thu, 16 Nov 2000 01:09:22 +0000 (+0000) Subject: The type of the hash_cb() size argument is tricky. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a56128cb6b3ea4627b6695edab03059309381357;p=p5sagit%2Fp5-mst-13.2.git The type of the hash_cb() size argument is tricky. p4raw-id: //depot/perl@7703 --- diff --git a/ext/DB_File/DB_File.xs b/ext/DB_File/DB_File.xs index f6df68a..2ea8a61 100644 --- a/ext/DB_File/DB_File.xs +++ b/ext/DB_File/DB_File.xs @@ -584,13 +584,19 @@ const DBT * key2 ; return (retval) ; } +#ifdef BERKELEY_DB_1_OR_2 +# define HASH_CB_SIZE_TYPE size_t +#else +# define HASH_CB_SIZE_TYPE u_int32_t +#endif + static DB_Hash_t #ifdef CAN_PROTOTYPE -hash_cb(const void *data, u_int32_t size) +hash_cb(const void *data, HASH_CB_SIZE_TYPE size) #else hash_cb(data, size) const void * data ; -u_int32_t size ; +HASH_CB_SIZE_TYPE size ; #endif { #ifdef dTHX