From: James Zern Date: Wed, 7 Sep 2016 06:25:51 +0000 (-0700) Subject: odintrin.h: add missing extern "C" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d986e5a302f8710e0919552c70a64ac94237856;p=libvpx odintrin.h: add missing extern "C" fixes test linkage Change-Id: I15a7b32551fddc5e78e3035e9d2e94a57ff9f1d2 --- diff --git a/av1/common/odintrin.h b/av1/common/odintrin.h index 4c5b9ae5c..5324cff8c 100644 --- a/av1/common/odintrin.h +++ b/av1/common/odintrin.h @@ -16,6 +16,10 @@ #include "aom_dsp/aom_dsp_common.h" #include "aom_ports/bitops.h" +#ifdef __cplusplus +extern "C" { +#endif + /*Smallest blocks are 4x4*/ #define OD_LOG_BSIZE0 (2) /*There are 5 block sizes total (4x4, 8x8, 16x16, 32x32 and 64x64).*/ @@ -55,4 +59,8 @@ extern uint32_t OD_DIVU_SMALL_CONSTS[OD_DIVU_DMAX][2]; We define a special version of the macro to use when x can be zero.*/ #define OD_ILOG(x) ((x) ? OD_ILOG_NZ(x) : 0) +#ifdef __cplusplus +} // extern "C" #endif + +#endif // AV1_COMMON_ODINTRIN_H_