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 "ordinals.h"
#ifdef __cplusplus
extern "C" {
#endif
/* changing the following values to be higher will break the framing and hence the stream format, so DON'T! */
#define FLAC__MIN_BLOCK_SIZE (16u)
#define FLAC__MAX_BLOCK_SIZE (65535u)
@@ -504,4 +508,8 @@ extern const unsigned FLAC__STREAM_METADATA_LENGTH_LEN; /* = 24 bits */
*/
FLAC__bool FLAC__format_is_valid_sample_rate(unsigned sample_rate);
#ifdef __cplusplus
}
#endif
#endif