mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Use extern "C" as appropriate to allow use with C++
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
|
||||
#include "format.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef enum {
|
||||
FLAC__STREAM_ENCODER_OK = 0,
|
||||
FLAC__STREAM_ENCODER_INVALID_CALLBACK,
|
||||
@@ -190,4 +195,8 @@ void FLAC__stream_encoder_finish(FLAC__StreamEncoder *encoder);
|
||||
FLAC__bool FLAC__stream_encoder_process(FLAC__StreamEncoder *encoder, const FLAC__int32 *buf[], unsigned samples);
|
||||
FLAC__bool FLAC__stream_encoder_process_interleaved(FLAC__StreamEncoder *encoder, const FLAC__int32 buf[], unsigned samples);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user