Ticket #8668: flac.patch

File flac.patch, 1.0 KB (added by Jonathan Martens <jonathan@…>, 14 years ago)

Patch to make flac compile on windows

  • include/share/alloc.h

     
    2828 */
    2929
    3030#include <limits.h> /* for SIZE_MAX */
    31 #if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__
     31#if HAVE_STDINT_H
    3232#include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */
    3333#endif
    3434#include <stdlib.h> /* for size_t, malloc(),
  • examples/cpp/encode/file/main.cpp

    old new  
    3030
    3131#include <stdio.h>
    3232#include <stdlib.h>
     33#include <cstring>
    3334#include "FLAC++/metadata.h"
    3435#include "FLAC++/encoder.h"
    3536
  • examples/cpp/decode/file/main.cpp

    old new  
    3030
    3131#include <stdio.h>
    3232#include <stdlib.h>
     33#include <cstring>
    3334#include "FLAC++/decoder.h"
    3435
    3536static FLAC__uint64 total_samples = 0;