Skip to content

Rename Q/W/Z printf-length macros to XD3_Q/XD3_W/XD3_Z (#292) - #297

Merged
jmacd merged 1 commit into
mainfrom
jmacd/defines
Jun 21, 2026
Merged

Rename Q/W/Z printf-length macros to XD3_Q/XD3_W/XD3_Z (#292)#297
jmacd merged 1 commit into
mainfrom
jmacd/defines

Conversation

@jmacd

@jmacd jmacd commented Jun 21, 2026

Copy link
Copy Markdown
Owner

The public header xdelta3.h defined single-letter macros Q, W and Z for printf length modifiers. These pollute the global namespace and break compilation when xdelta3.h is included alongside code that uses Q, W or Z as identifiers (e.g. parameter names in sqlite3 headers).

Prefix them with XD3_ and update all internal uses.

Fixes #292

@jmacd
jmacd marked this pull request as ready for review June 21, 2026 20:57
The public header xdelta3.h defined single-letter macros Q, W and Z for
printf length modifiers. These pollute the global namespace and break
compilation when xdelta3.h is included alongside code that uses Q, W or Z
as identifiers (e.g. parameter names in sqlite3 headers).

Prefix them with XD3_ and update all internal uses.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jmacd
jmacd merged commit 9822b17 into main Jun 21, 2026
17 checks passed
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.

defines Q/W/Z

1 participant