From 9e9bd5cc82e9082e82322d59f4f3ade786a02069 Mon Sep 17 00:00:00 2001 From: ademin Date: Sat, 13 Feb 2010 18:17:38 +0000 Subject: [PATCH] src: Fixed IsDebuggerPresent() function declaration. This fixes cmockery issue #6. The IsDebuggerPresent() function is not declared in Visual Studion 2005 and lower. Signed-off-by: Andreas Schneider --- src/google/cmockery.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/google/cmockery.h b/src/google/cmockery.h index c237f01..72c1945 100755 --- a/src/google/cmockery.h +++ b/src/google/cmockery.h @@ -15,6 +15,17 @@ */ #ifndef CMOCKERY_H_ #define CMOCKERY_H_ +#ifdef _WIN32 +#if _MSC_VER < 1500 +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus +int __stdcall IsDebuggerPresent(); +#ifdef __cplusplus +} /* extern "C" */ +#endif // __cplusplus +#endif // _MSC_VER < 1500 +#endif // _WIN32 /* * These headers or their equivalents should be included prior to including * this header file. -- 2.7.4