diff options
author | Bernhard Nortmann <bernhard.nortmann@web.de> | 2016-10-26 20:39:41 +0300 |
---|---|---|
committer | Bernhard Nortmann <bernhard.nortmann@web.de> | 2016-10-26 22:38:33 +0300 |
commit | f3960f4a7704e16203f2f82507f4bbb2a7e31a4c (patch) | |
tree | 9c4236eba8dd1023c196ed8f14542e21dc3dac63 /fel.c | |
parent | b496582b3d3dcd6130e1f40024fbc9d6895cc513 (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |