Use extern "C" as appropriate to allow use with C++

This commit is contained in:
Matt Zimmerman
2002-05-06 17:39:29 +00:00
parent 5b72e174a1
commit ce9459f4cb
6 changed files with 52 additions and 0 deletions

View File

@@ -22,6 +22,10 @@
#include "stream_decoder.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
FLAC__FILE_DECODER_OK = 0,
FLAC__FILE_DECODER_SEEKING, /*@@@ NOTE: unused; remove this in the next minor-version */
@@ -134,4 +138,8 @@ FLAC__bool FLAC__file_decoder_process_remaining_frames(FLAC__FileDecoder *decode
FLAC__bool FLAC__file_decoder_seek_absolute(FLAC__FileDecoder *decoder, FLAC__uint64 sample);
#ifdef __cplusplus
}
#endif
#endif