ref: 7a59c2fb3d1c5d7faa511ea91745fe73f78a127f
parent: 0eb7392e2192e674ce89e365e9a0c0df886237e8
author: Jörn Heusipp <[email protected]>
date: Thu Jan 25 11:45:53 EST 2018
Avoid warnings when compiling with -Wmissing-prototypes -Wmissing-prototypes will warn if non-static functions are defined without declaring the prototype first. Include the function prototype declaration also if MINIMP3_IMPLEMENTATION.
--- a/minimp3.h
+++ b/minimp3.h
@@ -27,8 +27,6 @@
unsigned char reserv_buf[511];
} mp3dec_t;
-#ifndef MINIMP3_IMPLEMENTATION
-
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
@@ -40,7 +38,7 @@
}
#endif //__cplusplus
-#else //MINIMP3_IMPLEMENTATION
+#ifdef MINIMP3_IMPLEMENTATION
#include <stdlib.h>
#include <string.h>