Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/fel.c
diff options
context:
space:
mode:
authorBernhard Nortmann <bernhard.nortmann@web.de>2016-10-26 20:39:41 +0300
committerBernhard Nortmann <bernhard.nortmann@web.de>2016-10-26 22:38:33 +0300
commitf3960f4a7704e16203f2f82507f4bbb2a7e31a4c (patch)
tree9c4236eba8dd1023c196ed8f14542e21dc3dac63 /fel.c
parentb496582b3d3dcd6130e1f40024fbc9d6895cc513 (diff)
fel: Change order of includes
For Windows portable_endian.h relies on and includes <winsock2.h>. Thus it needs to be requested first, otherwise other includes might pull in <windows.h> and cause a preprocessor warning / compilation failure (observed with MinGW). Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Diffstat (limited to 'fel.c')
-rw-r--r--fel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fel.c b/fel.c
index 6d9cfc6..8e617bd 100644
--- a/fel.c
+++ b/fel.c
@@ -15,6 +15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "common.h"
+#include "portable_endian.h"
+#include "progress.h"
+
#include <libusb.h>
#include <stdint.h>
#include <stdbool.h>
@@ -28,10 +32,6 @@
#include <unistd.h>
#include <sys/stat.h>
-#include "common.h"
-#include "portable_endian.h"
-#include "progress.h"
-
static const uint16_t AW_USB_VENDOR_ID = 0x1F3A;
static const uint16_t AW_USB_PRODUCT_ID = 0xEFE8;