Commit 9d3fb755 authored by James Zern's avatar James Zern
Browse files

rtcd: relocate 'extern "C" {' declaration

Place after pulling in forward declarations from the codec. This fixes
compilation of the tests under vs9.

10783d4f Adds high bitdepth transform functions and tests
where vp9_idct.h was added to vp9_rtcd.h the tests are pulling in
vp9_systemdependent.h, which under visual studio include intrin.h. With
VS9 these include headers which define helper classes for intel
intrinsics. When including it in the tests (via vp9_rtcd.h) __cplusplus
is defined but vp9_rtcd.h would wrap declarations in 'extern "C" {'
causing a mismatch in linkage which resulted in compilation failure.

Change-Id: I475e50198b71320e8606bc95c9454876d8799ede
parent 0ca6e4ac
......@@ -209,14 +209,16 @@ sub common_top() {
#define RTCD_EXTERN extern
print <<EOF;
#ifdef __cplusplus
extern "C" {
print "\n";
declare_function_pointers("c", @ALL_ARCHS);
print <<EOF;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment