Skip to content

Commit

Permalink
lowercase 'Windows.h' in main.cpp for mingw32 support (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasimmet authored Nov 12, 2024
1 parent dc9b549 commit ae9a188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7496,7 +7496,7 @@ bool reboot_command::execute(device_map &devices) {
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#include <Windows.h>
#include <windows.h>
#elif defined(__linux__) || defined(__APPLE__)
#include <sys/ioctl.h>
#endif
Expand Down
3 changes: 3 additions & 0 deletions picoboot_connection/picoboot_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ int picoboot_flash_id(libusb_device_handle *usb_device, uint64_t *data);

// we require 256 (as this is the page size supported by the device)
#define LOG2_PAGE_SIZE 8u
#ifdef PAGE_SIZE
#undef PAGE_SIZE
#endif
#define PAGE_SIZE (1u << LOG2_PAGE_SIZE)
#define FLASH_SECTOR_ERASE_SIZE 4096u

Expand Down

0 comments on commit ae9a188

Please sign in to comment.