mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-28 01:00:56 +00:00
Don't unconditionally define NDEBUG so as to not interfere with other code.
This commit is contained in:
parent
810f9d209b
commit
28b3d95c5b
11
xxh3.h
11
xxh3.h
@ -47,8 +47,11 @@
|
||||
#define XXH_INLINE_ALL
|
||||
#include "xxhash.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <assert.h>
|
||||
#ifndef NDEBUG
|
||||
# define NDEBUG
|
||||
# define UNDEF_NDEBUG
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* === Compiler versions === */
|
||||
@ -803,4 +806,8 @@ XXH_PUBLIC_API XXH128_hash_t XXH128(const void* data, size_t len, XXH64_hash_t s
|
||||
return XXH3_128bits_withSeed(data, len, seed);
|
||||
}
|
||||
|
||||
#ifdef UNDEF_NDEBUG
|
||||
# undef NDEBUG
|
||||
#endif
|
||||
|
||||
#endif /* XXH3_H */
|
||||
|
Loading…
Reference in New Issue
Block a user