Configurable namespace prefix for `ZSTD_*` APIs
- Dominant language
- C
- Stars
- 27.9k
- Forks
- 2.6k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Description
**Is your feature request related to a problem? Please describe.**
Could we support configurable namespace prefix for `ZSTD_*` APIs (something like `--with-jemalloc-prefix=` in jemalloc (https://github.com/jemalloc/jemalloc/blob/dev/INSTALL.md)) to allow embed two (maybe different) zstd library in two separated components of a single application and avoid possible symbol conflict?
**Describe the solution you'd like**
Add a macro like `ZSTD_NAMESPACE` which defaults to `ZSTD_` but can be overrided and makes all APIs in zstd depends on it.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Contributor guide
Assessment
This issue has not been assessed yet.