Skip to content

Make cpa.h include guard more unique#140

Merged
fionatrahe merged 1 commit intomainfrom
unique_include_guard
Feb 17, 2026
Merged

Make cpa.h include guard more unique#140
fionatrahe merged 1 commit intomainfrom
unique_include_guard

Conversation

@Ahsan-Atta
Copy link
Contributor

The CPA_H include guard is too generic and risks collisions when the header is included alongside other libraries. Rename it to CPA_QAT_H for a more project-specific guard.

Also remove the redundant #ifndef CPA_H conditional wrappers around cpa.h as it has its own include guard to prevent double inclusion.

This addresses GitHub issue #139.

The CPA_H include guard is too generic and risks collisions when the
header is included alongside other libraries. Rename it to CPA_QAT_H
for a more project-specific guard.

Also remove the redundant #ifndef CPA_H conditional wrappers around
cpa.h as it has its own include guard to prevent double inclusion.

This addresses GitHub issue #139.

Signed-off-by: Ahsan Atta <ahsan.atta@intel.com>
@elfring
Copy link

elfring commented Feb 17, 2026

@fionatrahe
Copy link
Contributor

💭 Would you dare to apply even more unique name patterns for affected include guards?

We haven't seen any actual clashes and think this length pattern is sufficient. If that proves not to be the case we can look at implementing your other suggestions in future.

@fionatrahe fionatrahe merged commit bb137a4 into main Feb 17, 2026
3 checks passed
@fionatrahe fionatrahe deleted the unique_include_guard branch February 17, 2026 17:50
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.

4 participants