Merge pull request #2271 from ivaradi/cstdint-fix

Include cstdint only when compiling C++ code
This commit is contained in:
István Váradi 2020-08-15 14:35:01 +02:00 committed by GitHub
commit 770e3e7b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@
#ifndef _C_JHASH_H
#define _C_JHASH_H
#include <cstdint>
#include <stdint.h> // NOLINT
#define c_hashsize(n) ((uint8_t) 1 << (n))
#define c_hashmask(n) (xhashsize(n) - 1)