From: ademin Date: Sat, 13 Feb 2010 18:17:38 +0000 (+0000) Subject: src: Fixed IsDebuggerPresent() function declaration. X-Git-Tag: cmocka-1.1.1~351 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e9bd5cc82e9082e82322d59f4f3ade786a02069;p=platform%2Fupstream%2Fcmocka.git 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 --- 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.