From 3b5b877e9180f12d2c1ca9f2432ff89739c5435b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Thu, 15 Aug 2024 19:49:24 +0200 Subject: [PATCH] Change extern "C" block to include all API declarations, including structure definitions, instead of just function declarations. --- minimp3.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;