Commit 15233338 authored by deuce's avatar deuce
Browse files

Rename crc32() function to sbbs_crc32() and macro it back in crc32.h

This is to prevent symbol collision with

parent 79b19dbe
......@@ -78,7 +78,7 @@ long crc32tbl[]={ /* CRC polynomial 0xedb88320 */
/* Pass len of 0 to auto-determine ASCIIZ string length */
/* or non-zero for arbitrary binary data */
unsigned long crc32(char *buf, unsigned long len)
unsigned long sbbs_crc32(char *buf, unsigned long len)
unsigned long l,crc=0xffffffff;
......@@ -54,5 +54,6 @@ unsigned long fcrc32(FILE* fp, unsigned long len);
#define ucrc32(ch,crc) (crc32tbl[(crc^(ch))&0xff]^(crc>>8))
#define crc32(x,y) sbbs_crc32(x,y)
#endif /* Don't add anything after this line */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment