Add a method for checking if ZSTD was compiled with flags that impact determinism

This commit is contained in:
Nick Terrell authored and Nick Terrell committed 2025-03-07 10:31:19 -05:00
1 parent 99cf130cfc
commit 0de4991942
4 files changed
+44 -1

No files matched your search

+9
View File
@@ -46,3 +46,12 @@ ZSTD_ErrorCode ZSTD_getErrorCode(size_t code) { return ERR_getErrorCode(code); }
/*! ZSTD_getErrorString() :
* provides error code string from enum */
const char* ZSTD_getErrorString(ZSTD_ErrorCode code) { return ERR_getErrorString(code); }
int ZSTD_isDeterministicBuild(void)
{
#if ZSTD_IS_DETERMINISTIC_BUILD
return 1;
#else
return 0;
#endif
}