Minor fix in header files
Move functions to be included in extern "C".
Change-Id: If57fa5eb7955763cf99e6839dde4d7221fad75ea
diff --git a/vp10/encoder/encoder.h b/vp10/encoder/encoder.h
index 2c158a4..efde0fc 100644
--- a/vp10/encoder/encoder.h
+++ b/vp10/encoder/encoder.h
@@ -701,10 +701,6 @@
#define LAYER_IDS_TO_IDX(sl, tl, num_tl) ((sl) * (num_tl) + (tl))
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
#if CONFIG_AFFINE_MOTION
// Update up-sampled reference frame index.
static INLINE void uref_cnt_fb(EncRefCntBuffer *ubufs, int *uidx,
@@ -719,4 +715,8 @@
}
#endif
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif // VP10_ENCODER_ENCODER_H_
diff --git a/vp10/encoder/rdopt.h b/vp10/encoder/rdopt.h
index 74702a9..f4d9b95 100644
--- a/vp10/encoder/rdopt.h
+++ b/vp10/encoder/rdopt.h
@@ -102,9 +102,6 @@
uint8_t *tmp_buf[MAX_MB_PLANE],
int tmp_stride[MAX_MB_PLANE]);
#endif // CONFIG_OBMC
-#ifdef __cplusplus
-} // extern "C"
-#endif
#if CONFIG_AFFINE_MOTION
static INLINE const YV12_BUFFER_CONFIG *get_upsampled_ref(VP10_COMP *cpi,
@@ -122,4 +119,8 @@
}
#endif
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif // VP10_ENCODER_RDOPT_H_