Skip to content

Add missing header include#147

Open
sjoubert49 wants to merge 2 commits into
OpenPrinting:masterfrom
sjoubert49:signed
Open

Add missing header include#147
sjoubert49 wants to merge 2 commits into
OpenPrinting:masterfrom
sjoubert49:signed

Conversation

@sjoubert49
Copy link
Copy Markdown

The pwg.h reference ipp_t from ipp.h but the header is not included. This is fine when including cups.h because it includes the headers in the correct order, but leads to an error when trying to use pwg.h first (and confuses the IDE)

@sjoubert49 sjoubert49 marked this pull request as ready for review June 1, 2026 16:08
Copy link
Copy Markdown
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than include the "ipp.h" header for the ipp_t typedef, I think I'd rather just move the definition to the "base.h" header:

typedef struct _ipp_s ipp_t;		// IPP request/response data

@michaelrsweet michaelrsweet self-assigned this Jun 1, 2026
@sjoubert49
Copy link
Copy Markdown
Author

Modified and tested in the case where I had a compilation error

@sjoubert49 sjoubert49 requested a review from michaelrsweet June 2, 2026 08:22
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.

2 participants