Commit 03f22cd1 authored by Chuck Atkins's avatar Chuck Atkins

FindPackageModeMakefileTest: Explicitly use C linkage

This explicitly uses C linkage for the library code used by the test to work
around some compilers (Solaris Studio 12.4) that implicitly assume incorrect
linkage information.  Since something else entirely is being tested here,
this allows the test to proceed as needed on the affected platforms.
parent 6783fac2
#include "foo.h"
int foo()
{
return 1477;
......
#ifndef FOO_H
#define FOO_H
#ifdef __cplusplus
extern "C" {
#endif
int foo();
#ifdef __cplusplus
} // extern "C"
#endif
#endif
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