diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-31 16:22:46 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-31 16:22:46 +0300 |
commit | 7ccef23c4d010d4b4f83efe2cd6c82ff26824a10 (patch) | |
tree | 103ece07c4a824dcc38a0daed564419cb29062b6 /source/blender/blenlib/BLI_hash.h | |
parent | 9a7ea778b37538b0ff479c7fcbf00cdfe721d7fb (diff) |
Add C++ guards to some blenlib headers
Diffstat (limited to 'source/blender/blenlib/BLI_hash.h')
-rw-r--r-- | source/blender/blenlib/BLI_hash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_hash.h b/source/blender/blenlib/BLI_hash.h index f74010479a9..f369897a1b8 100644 --- a/source/blender/blenlib/BLI_hash.h +++ b/source/blender/blenlib/BLI_hash.h @@ -25,6 +25,10 @@ * \ingroup bli */ +#ifdef __cplusplus +extern "C" { +#endif + BLI_INLINE unsigned int BLI_hash_int_2d(unsigned int kx, unsigned int ky) { #define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k)))) @@ -80,4 +84,8 @@ BLI_INLINE void BLI_hash_pointer_to_color(const void *ptr, int *r, int *g, int * *b = hash & 0x0000ff; } +#ifdef __cplusplus +} +#endif + #endif // __BLI_HASH_H__ |