1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Zlib: Remove extern "C" for declarations in bundled private namespace

This commit is contained in:
reuk 2025-04-09 14:14:50 +01:00
parent 953a404359
commit 8f6157142b
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -3,3 +3,7 @@
Include guards were added to these files to support multiple inclusion in a Include guards were added to these files to support multiple inclusion in a
unity-style build. unity-style build.
# zlib.h
`extern "C"` was removed to avoid symbol collisions when including multiple
copies of zlib in the same project.

View file

@ -34,7 +34,7 @@
#include "zconf.h" #include "zconf.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { // extern "C" {
#endif #endif
#define ZLIB_VERSION "1.3.1" #define ZLIB_VERSION "1.3.1"
@ -1932,7 +1932,7 @@ ZEXTERN int ZEXPORTVA gzvprintf(gzFile file,
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} // }
#endif #endif
#endif /* ZLIB_H */ #endif /* ZLIB_H */