Ignore:
Timestamp:
12/28/06 12:11:38 (18 years ago)
Author:
r2d
Message:

win32 compilation corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcenc/bitstream.c

    r161 r194  
    1818 */
    1919
     20#ifdef _WIN32
     21#include <windows.h>
     22#define sleep(t) Sleep((t) * 1000)
     23#else
    2024#include <unistd.h>
     25#endif
    2126
    2227#include "libmpcenc.h"
     
    125130
    126131        if (addCodeSize) {
    127                 while ((1 << (7 * i)) - i <= size) i++;
     132                while ((1ull << (7 * i)) - i <= size) i++;
    128133                size += i;
    129134        } else
    130                 while ((1 << (7 * i)) <= size) i++;
     135                while ((1ull << (7 * i)) <= size) i++;
    131136
    132137        for( j = i - 1; j >= 0; j--){
Note: See TracChangeset for help on using the changeset viewer.