Add bunch of missing includes to fix build with gcc 4.7
[apt.git] / apt-pkg / contrib / crc-16.h
1 // -*- mode: c++; mode: fold -*-
2 // Description                                                          /*{{{*/
3 // $Id: crc-16.h,v 1.1 2002/07/23 17:54:51 niemeyer Exp $
4 /* ######################################################################
5
6    CRC16 - Compute a 16bit crc very quickly
7    
8    ##################################################################### */
9                                                                         /*}}}*/
10 #ifndef APTPKG_CRC16_H
11 #define APTPKG_CRC16_H
12
13 #include <string>
14
15 #define INIT_FCS  0xffff
16 unsigned short AddCRC16(unsigned short fcs, void const *buf,
17                         unsigned long len);
18
19 unsigned short AddCRC16(unsigned short fcs, const std::string & str);
20 #endif