diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2015-09-22 04:11:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-25 14:07:54 (GMT) |
commit | a27bc0ccacff7bc590ace2ce941f0552d05fd14c (patch) | |
tree | b9f4b5e0ce15408cf38aa7db19af5ac4d900c850 /Modules/CheckFunctionExists.c | |
parent | 7279f2939e98ae9ecfb8fda2dc82f6b0048b9316 (diff) | |
download | CMake-a27bc0ccacff7bc590ace2ce941f0552d05fd14c.zip CMake-a27bc0ccacff7bc590ace2ce941f0552d05fd14c.tar.gz CMake-a27bc0ccacff7bc590ace2ce941f0552d05fd14c.tar.bz2 |
Check(Function|Library|Symbol)Exists: make it work if only C++ is enabled
Diffstat (limited to 'Modules/CheckFunctionExists.c')
-rw-r--r-- | Modules/CheckFunctionExists.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CheckFunctionExists.c b/Modules/CheckFunctionExists.c index 607b3e8..fd29618 100644 --- a/Modules/CheckFunctionExists.c +++ b/Modules/CheckFunctionExists.c @@ -1,5 +1,8 @@ #ifdef CHECK_FUNCTION_EXISTS +#ifdef __cplusplus +extern "C" +#endif char CHECK_FUNCTION_EXISTS(); #ifdef __CLASSIC_C__ int main(){ |