summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2022-07-08 15:41:44 -0700
committerJames Zern <jzern@google.com>2022-07-08 15:44:39 -0700
commit56a480e80ccf8d37e8c796a9c5874a8881fd7dcd (patch)
tree20ac3d2ed6f49294aa83875efb9efa5ec7ecd6c3
parent62b45bddcd462b7749348be671fb20e75489be11 (diff)
downloadlibwebp-56a480e80ccf8d37e8c796a9c5874a8881fd7dcd.tar.gz
dsp/cpu.h: add missing extern "C"
fixes linking of tests/fuzzer/animencoder_fuzzer on windows Change-Id: I0bd14b0e8c7ecb261e861689c25cd4b7fdaecbfd
-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_