summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dsp/cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dsp/cpu.h b/src/dsp/cpu.h
index be0c280f..57a40d87 100644
--- a/src/dsp/cpu.h
+++ b/src/dsp/cpu.h
@@ -238,8 +238,17 @@ typedef enum {
kMIPSdspR2,
kMSA
} CPUFeature;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// returns true if the CPU supports the feature.
typedef int (*VP8CPUInfo)(CPUFeature feature);
WEBP_EXTERN VP8CPUInfo VP8GetCPUInfo;
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif // WEBP_DSP_CPU_H_