X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=crc.h;h=ec12ce847fcc94b30d4093c62607e0b8eb6e9b87;hb=07dad3ec4551624b0cc92ee67768a2a9dc8ff48f;hp=c613ebc4f24304517b167bf3a5d7c4c40f90e0df;hpb=8dcce44300385b12c46d494c06aadcfa35a8bc14;p=xonotic%2Fdarkplaces.git diff --git a/crc.h b/crc.h index c613ebc4..ec12ce84 100644 --- a/crc.h +++ b/crc.h @@ -19,10 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* crc.h */ +#ifndef CRC_H +#define CRC_H + void CRC_Init(unsigned short *crcvalue); -void CRC_ProcessByte(unsigned short *crcvalue, byte data); +void CRC_ProcessByte(unsigned short *crcvalue, qbyte data); // LordHavoc: added this for speed reasons -void CRC_ProcessBytes(unsigned short *crcvalue, byte *data, int size); +void CRC_ProcessBytes(unsigned short *crcvalue, qbyte *data, int size); unsigned short CRC_Value(unsigned short crcvalue); // LordHavoc: further speed and usability improvement -unsigned short CRC_Block(byte *data, int size); +unsigned short CRC_Block(qbyte *data, int size); + +#endif +