Skip to content

Commit ae9a188

Browse files
authored
lowercase 'Windows.h' in main.cpp for mingw32 support (#168)
1 parent dc9b549 commit ae9a188

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7496,7 +7496,7 @@ bool reboot_command::execute(device_map &devices) {
74967496
#if defined(_WIN32)
74977497
#define WIN32_LEAN_AND_MEAN
74987498
#define VC_EXTRALEAN
7499-
#include <Windows.h>
7499+
#include <windows.h>
75007500
#elif defined(__linux__) || defined(__APPLE__)
75017501
#include <sys/ioctl.h>
75027502
#endif

picoboot_connection/picoboot_connection.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ int picoboot_flash_id(libusb_device_handle *usb_device, uint64_t *data);
8181

8282
// we require 256 (as this is the page size supported by the device)
8383
#define LOG2_PAGE_SIZE 8u
84+
#ifdef PAGE_SIZE
85+
#undef PAGE_SIZE
86+
#endif
8487
#define PAGE_SIZE (1u << LOG2_PAGE_SIZE)
8588
#define FLASH_SECTOR_ERASE_SIZE 4096u
8689

0 commit comments

Comments
 (0)