Skip to content

Commit

Permalink
Increase x-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes authored and terrelln committed Apr 29, 2024
1 parent d7cb470 commit 97291fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/zstd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1802,11 +1802,15 @@ static
#ifdef __GNUC__
__attribute__((__unused__))
#endif
// Disable diagnostic for C++ compatibility

#if defined(__clang__) && __clang_major__ >= 5
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /**< this constant defers to stdlib's functions */
#if defined(__clang__) && __clang_major__ >= 5
#pragma clang diagnostic pop
#endif

ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem);
ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem);
Expand Down

0 comments on commit 97291fc

Please sign in to comment.