ref: a5d23f547a4ae7a0a5b17c0a22f196b5fff6584f
parent: ec7f2133d0fa123eeb0ca1d7c75ac473aec5ed1f
author: James Zern <jzern@google.com>
date: Sat Jan 18 07:16:11 EST 2014
vpx_ports: add extern "C" to headers Change-Id: Iba9b198ce78b3f8b644feba064f83abc247e75dd
--- a/vpx_ports/arm.h
+++ b/vpx_ports/arm.h
@@ -14,6 +14,10 @@
#include <stdlib.h>
#include "vpx_config.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*ARMv5TE "Enhanced DSP" instructions.*/
#define HAS_EDSP 0x01
/*ARMv6 "Parallel" or "Media" instructions.*/
@@ -22,6 +26,10 @@
#define HAS_NEON 0x04
int arm_cpu_caps(void);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
#endif // VPX_PORTS_ARM_H_
--- a/vpx_ports/x86.h
+++ b/vpx_ports/x86.h
@@ -14,6 +14,10 @@
#include <stdlib.h>
#include "vpx_config.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum {
VPX_CPU_UNKNOWN = -1,
VPX_CPU_AMD,
@@ -256,5 +260,9 @@
extern void vpx_reset_mmx_state(void);
-#endif // VPX_PORTS_X86_H_
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // VPX_PORTS_X86_H_
--
⑨