From cf93b65a65f948d4014d3fd2f7541ffe1b2209d4 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 2 Mar 2020 15:04:53 +0100 Subject: Cleanup: make remaining blenlib headers work in C++ Differential Revision: https://developer.blender.org/D6988 Reviewers: brecht --- source/blender/blenlib/BLI_endian_switch.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenlib/BLI_endian_switch.h') diff --git a/source/blender/blenlib/BLI_endian_switch.h b/source/blender/blenlib/BLI_endian_switch.h index c849398a56f..a07508e31a0 100644 --- a/source/blender/blenlib/BLI_endian_switch.h +++ b/source/blender/blenlib/BLI_endian_switch.h @@ -23,6 +23,10 @@ #include "BLI_compiler_attrs.h" +#ifdef __cplusplus +extern "C" { +#endif + /* BLI_endian_switch_inline.h */ BLI_INLINE void BLI_endian_switch_int16(short *val) ATTR_NONNULL(1); BLI_INLINE void BLI_endian_switch_uint16(unsigned short *val) ATTR_NONNULL(1); @@ -43,6 +47,10 @@ void BLI_endian_switch_int64_array(int64_t *val, const int size) ATTR_NONNULL(1) void BLI_endian_switch_uint64_array(uint64_t *val, const int size) ATTR_NONNULL(1); void BLI_endian_switch_double_array(double *val, const int size) ATTR_NONNULL(1); +#ifdef __cplusplus +} +#endif + #include "BLI_endian_switch_inline.h" #endif /* __BLI_ENDIAN_SWITCH_H__ */ -- cgit v1.2.3