A recent change added CALLBACK to PENUM_PAGE_FILE_CALLBACKW/A in psapi.h,
which conflicts with our own macro of the same name. Our compat/windows.h
header undefs the Windows definition, but that only works if Windows
headers are included before ours, which wasn't the case for psapi.h.
*/
#define _GNU_SOURCE
+#include <string.h>
#ifdef HAVE_BACKTRACE
-# include <execinfo.h>
+#include <execinfo.h>
#endif /* HAVE_BACKTRACE */
+
+#ifdef WIN32
+#include <winsock2.h>
+#include <windows.h>
#ifdef HAVE_DBGHELP
-# include <winsock2.h>
-# include <windows.h>
-# include <dbghelp.h>
+#include <dbghelp.h>
#endif /* HAVE_DBGHELP */
-#include <string.h>
-
-#include "backtrace.h"
-#include <utils/debug.h>
-
-#ifdef WIN32
-# include <psapi.h>
+#include <psapi.h>
/* missing in MinGW */
#ifdef WIN64
#ifndef GetModuleInformation
#endif /* WIN64 */
#endif
+#include "backtrace.h"
+
+#include <utils/debug.h>
+
typedef struct private_backtrace_t private_backtrace_t;
/**