src: Fix includes.
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 18:37:57 +0000 (20:37 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 31 May 2011 19:10:11 +0000 (21:10 +0200)
src/cmockery.c

index f0f7424..4248651 100755 (executable)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+
 #include <setjmp.h>
-#ifndef _WIN32
-#include <signal.h>
-#endif // !_WIN32
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+
 #ifdef _WIN32
 #include <windows.h>
-#endif // _WIN32
-#include <cmockery.h>
 
-#ifdef _WIN32
 #define vsnprintf _vsnprintf
-#endif // _WIN32
 
-/* Backwards compatibility with headers shipped with Visual Studio 2005 and
- * earlier. */
-#ifdef _WIN32
+/*
+ * Backwards compatibility with headers shipped with Visual Studio 2005 and
+ * earlier.
+ */
 WINBASEAPI BOOL WINAPI IsDebuggerPresent(VOID);
-#endif // _WIN32
+#else /* _WIN32 */
+#include <signal.h>
+#endif /* _WIN32 */
+
+#include <cmockery.h>
 
 // Size of guard bytes around dynamically allocated blocks.
 #define MALLOC_GUARD_SIZE 16