summaryrefslogtreecommitdiff
path: root/vp8/common/pragmas.h
diff options
context:
space:
mode:
Diffstat (limited to 'vp8/common/pragmas.h')
-rw-r--r--vp8/common/pragmas.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vp8/common/pragmas.h b/vp8/common/pragmas.h
index be10452d2..329cc8275 100644
--- a/vp8/common/pragmas.h
+++ b/vp8/common/pragmas.h
@@ -11,6 +11,10 @@
#ifndef VP8_COMMON_PRAGMAS_H_
#define VP8_COMMON_PRAGMAS_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef __INTEL_COMPILER
#pragma warning(disable:997 1011 170)
#endif
@@ -18,4 +22,8 @@
#pragma warning(disable:4799)
#endif
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif // VP8_COMMON_PRAGMAS_H_