mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-23 06:29:39 +00:00
fix to solaris restrict keyword with c++
This commit is contained in:
parent
01fc2e6294
commit
c865e556c9
5
xxhash.h
5
xxhash.h
@ -2679,8 +2679,9 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src
|
||||
|
||||
/* === Compiler specifics === */
|
||||
|
||||
/* === Compiler specifics === */
|
||||
#if defined(sun) || defined(__sun)
|
||||
#if ((defined(sun) || defined(__sun)) && __cplusplus) /* Solaris includes __STDC_VERSION__ with C++. Tested with GCC 5.5 */
|
||||
# define XXH_RESTRICT /* disable */
|
||||
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* >= C99 */
|
||||
# define XXH_RESTRICT /* disable */
|
||||
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* >= C99 */
|
||||
# define XXH_RESTRICT restrict
|
||||
|
Loading…
Reference in New Issue
Block a user