Skip to content

v1: Define the NOMINMAX macro for Windows builds - #141

Open
thesan wants to merge 1 commit into
bitcoinjs:v1from
thesan:v1-nominmax
Open

v1: Define the NOMINMAX macro for Windows builds#141
thesan wants to merge 1 commit into
bitcoinjs:v1from
thesan:v1-nominmax

Conversation

@thesan

@thesan thesan commented Jan 16, 2025

Copy link
Copy Markdown

Hello,

I have a niche case of the build failing on Windows due to the WinDef.h macro. It happens with the following configuration:

  • node: both 20 and 22
  • electron: 32 (it works with 31)
  • electron-builder: 25 (it works with 24)
  • node-gyp: both the 9.4.1 and also the patched @electron/node-gyp@10.2.0-electron.1

Again this is niche but others seem to have experienced similar issues with different configurations (e.g serialport/node-serialport#2957). As a result I am submitting this patch.

FYI here is the PR where I experienced the issue: LedgerHQ/ledger-live#8748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant