... it is annoying that we keep running into the same bug over and over again (IIRC it happened in the past at least once for Bitcoin Core). Surely this is going to happen again in the future.
And here we go again.
The nb30.h Windows header defines UNIQUE_NAME as a macro.
This introduces a fragile dependency on header inclusion order: if Windows headers happen to be included before UNIQUE_NAME is used, the preprocessor expands it into a numeric literal, causing syntax errors.
Rename the macro to BITCOIN_UNIQUE_NAME to remove this fragility and avoid the collision entirely.
Noticed while doing a Guix build of the QML repo for Windows.