From ca71633ac8222e7d9e4fc92094f5b2a372170cbf Mon Sep 17 00:00:00 2001 From: stewartamiles Date: Thu, 23 Jul 2009 16:32:54 +0000 Subject: [PATCH] Fixed Issue 6 from code.google.com/p/cmockery : IsDebuggerPresent() function is not declared in Visual Studion 2005 and lower git-svn-id: http://cmockery.googlecode.com/svn/trunk@31 40f4469a-5155-0410-be90-2de3f0bae501 --- src/cmockery.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmockery.c b/src/cmockery.c index 9d01cd2..1b3ca76 100755 --- a/src/cmockery.c +++ b/src/cmockery.c @@ -32,6 +32,12 @@ #define vsnprintf _vsnprintf #endif // _WIN32 +/* Backwards compatibility with headers shipped with Visual Studio 2005 and + * earlier. */ +#ifdef _WIN32 +WINBASEAPI BOOL WINAPI IsDebuggerPresent(VOID); +#endif // _WIN32 + // Size of guard bytes around dynamically allocated blocks. #define MALLOC_GUARD_SIZE 16 // Pattern used to initialize guard blocks. -- 2.7.4