diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2015-09-22 06:11:50 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-25 10:07:54 -0400 |
commit | a27bc0ccacff7bc590ace2ce941f0552d05fd14c (patch) | |
tree | b9f4b5e0ce15408cf38aa7db19af5ac4d900c850 /Modules/CheckFunctionExists.c | |
parent | 7279f2939e98ae9ecfb8fda2dc82f6b0048b9316 (diff) | |
download | cmake-a27bc0ccacff7bc590ace2ce941f0552d05fd14c.tar.gz |
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 607b3e8c6a..fd29618ce8 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(){ |