Changeset 443


Ignore:
Timestamp:
06/24/09 23:22:00 (15 years ago)
Author:
r2d
Message:

renamed crc32 to mpc_crc32 to avoid name conflics with static libs

Location:
libmpc/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/common/crc32.c

    r135 r443  
    5151
    5252/* Return the CRC of the bytes buf[0..len-1]. */
    53 unsigned long crc32(unsigned char *buf, int len)
     53unsigned long mpc_crc32(unsigned char *buf, int len)
    5454{
    5555        return update_crc(0xffffffffL, buf, len) ^ 0xffffffffL;
  • libmpc/trunk/libmpcdec/streaminfo.c

    r431 r443  
    4343#include "mpc_bits_reader.h"
    4444
    45 unsigned long crc32(unsigned char *buf, int len);
     45unsigned long mpc_crc32(unsigned char *buf, int len);
    4646
    4747static const char na[] = "n.a.";
     
    191191
    192192        CRC = (mpc_bits_read(&r, 16) << 16) | mpc_bits_read(&r, 16);
    193         if (CRC != crc32(r.buff + 1 - (r.count >> 3), (int)block_size - 4))
     193        if (CRC != mpc_crc32(r.buff + 1 - (r.count >> 3), (int)block_size - 4))
    194194                return MPC_STATUS_FILE;
    195195
  • libmpc/trunk/libmpcenc/bitstream.c

    r427 r443  
    2929#include "stdio.h"
    3030
    31 unsigned long crc32(unsigned char *buf, int len);
     31unsigned long mpc_crc32(unsigned char *buf, int len);
    3232
    3333#define MAX_ENUM 32
     
    207207        if (addCRC) {
    208208                char tmp[4];
    209                 unsigned long CRC32 = crc32((unsigned char *) e->buffer, e->pos);
     209                unsigned long CRC32 = mpc_crc32((unsigned char *) e->buffer, e->pos);
    210210                tmp[0] = (char) (CRC32 >> 24);
    211211                tmp[1] = (char) (CRC32 >> 16);
Note: See TracChangeset for help on using the changeset viewer.