From 56a480e80ccf8d37e8c796a9c5874a8881fd7dcd Mon Sep 17 00:00:00 2001
From: James Zern <jzern@google.com>
Date: Fri, 8 Jul 2022 15:41:44 -0700
Subject: [PATCH] dsp/cpu.h: add missing extern "C"

fixes linking of tests/fuzzer/animencoder_fuzzer on windows

Change-Id: I0bd14b0e8c7ecb261e861689c25cd4b7fdaecbfd
---
 src/dsp/cpu.h | 9 +++++++++
 1 file changed, 9 insertions(+)

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_