Include cstdint only when compiling C++ code

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
This commit is contained in:
István Váradi 2020-08-13 21:16:06 +02:00
parent 74c1710ed4
commit 89d4b6e12a

View file

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