Fixed Issue 6 from code.google.com/p/cmockery : IsDebuggerPresent() function is not...
authorstewartamiles <stewartamiles@40f4469a-5155-0410-be90-2de3f0bae501>
Thu, 23 Jul 2009 16:32:54 +0000 (16:32 +0000)
committerstewartamiles <stewartamiles@40f4469a-5155-0410-be90-2de3f0bae501>
Thu, 23 Jul 2009 16:32:54 +0000 (16:32 +0000)
git-svn-id: http://cmockery.googlecode.com/svn/trunk@31 40f4469a-5155-0410-be90-2de3f0bae501

src/cmockery.c

index 9d01cd2fe9801dd69ff18383ddedbae08cf50c34..1b3ca76bee10fbfc66d2b1b2e0791c93b549d505 100755 (executable)
 #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.