src: Fixed IsDebuggerPresent() function declaration.
authorademin <devnull@localhost>
Sat, 13 Feb 2010 18:17:38 +0000 (18:17 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 17:59:46 +0000 (19:59 +0200)
This fixes cmockery issue #6. The IsDebuggerPresent() function is not
declared in Visual Studion 2005 and lower.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/google/cmockery.h

index c237f01..72c1945 100755 (executable)
  */
 #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.