diff --git a/minimp3.h b/minimp3.h index 3220ae1..824c5ae 100644 --- a/minimp3.h +++ b/minimp3.h @@ -8,6 +8,10 @@ */ #include +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #define MINIMP3_MAX_SAMPLES_PER_FRAME (1152*2) typedef struct @@ -22,10 +26,6 @@ typedef struct unsigned char header[4], reserv_buf[511]; } mp3dec_t; -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - void mp3dec_init(mp3dec_t *dec); #ifndef MINIMP3_FLOAT_OUTPUT typedef int16_t mp3d_sample_t;