From 5d1cbec583647b5023589afba3f5095583d7ccd6 Mon Sep 17 00:00:00 2001
From: Tobias Rapp <t.rapp@noa-archive.com>
Date: Tue, 30 Aug 2016 09:19:04 +0200
Subject: [PATCH] cmdutils: move includes to top of file
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
---
cmdutils.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -64,6 +64,9 @@
#ifdef _WIN32
#include <windows.h>
#endif
+#if HAVE_COMMANDLINETOARGVW
+#include <shellapi.h>
+#endif
static int init_report(const char *env);
@@ -225,8 +228,6 @@ static const OptionDef *find_option(const OptionDef *po, const char *name)
* by default. HAVE_COMMANDLINETOARGVW is true on cygwin, while
* it doesn't provide the actual command line via GetCommandLineW(). */
#if HAVE_COMMANDLINETOARGVW && defined(_WIN32)
-#include <windows.h>
-#include <shellapi.h>
/* Will be leaked on exit */
static char** win32_argv_utf8 = NULL;
static int win32_argc = 0;
--
1.9.1