-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make: Add ZSTD_PROGRAMS_LINK_SHARED to dll-link zstd #2450
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -968,6 +968,9 @@ static size_t ZDICT_addEntropyTablesFromBuffer_advanced( | |
} | ||
|
||
/* Hidden declaration for dbio.c */ | ||
#if defined(ZSTD_PROGRAMS_LINK_SHARED) | ||
ZSTDLIB_API | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, we could make Another alternative is to not use it in |
||
#endif | ||
size_t ZDICT_trainFromBuffer_unsafe_legacy( | ||
void* dictBuffer, size_t maxDictSize, | ||
const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could instead be some conditionally-defined
ZSTDLIB_CLI_DLL_API
(or whatever) in lib/zstd.h. I don't feel strongly about it; the number of instances needed will probably remain very small.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably remove
ZSTD_cycleLog()
dependency. It's a trivial code to copy.