Skip to content

Replace include guard macros with #pragma once in include files#25

Merged
makubacki merged 1 commit intotianocore-docs:mainfrom
makubacki:53_include_guard_pragma_once_update
Feb 23, 2026
Merged

Replace include guard macros with #pragma once in include files#25
makubacki merged 1 commit intotianocore-docs:mainfrom
makubacki:53_include_guard_pragma_once_update

Conversation

@makubacki
Copy link
Contributor

@makubacki makubacki commented Feb 9, 2026

Updates the include file requirements to mandate the use of #pragma once instead of traditional include guard macros with special exceptions noted.


Corresponding edk2 change: tianocore/edk2#12149

mdkinney
mdkinney previously approved these changes Feb 9, 2026
@makubacki makubacki force-pushed the 53_include_guard_pragma_once_update branch from c2b06a7 to 5703692 Compare February 10, 2026 04:17
Updates the include file requirements to mandate the use of
`#pragma once` instead of traditional include guard macros with
special exceptions noted.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki makubacki merged commit 2aabd1b into tianocore-docs:main Feb 23, 2026
1 check 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.

3 participants