Skip to content

Commit

Permalink
Merged PR 4864: PolicyServicePkg/PolicyCommon.h: Add include guard
Browse files Browse the repository at this point in the history
Adds an include guard to the file to prevent it from being included
more than once (it currently is not).
  • Loading branch information
makubacki authored and kenlautner committed Sep 19, 2022
1 parent 9236e3c commit 664c75f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PolicyServicePkg/PolicyService/PolicyCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
**/

#ifndef _POLICY_COMMON_H_
#define _POLICY_COMMON_H_

typedef struct _POLICY_HOB_HEADER {
EFI_GUID PolicyGuid;
UINT64 Attributes;
Expand All @@ -16,3 +19,5 @@ typedef struct _POLICY_HOB_HEADER {
} POLICY_HOB_HEADER;

#define GET_HOB_POLICY_DATA(_hob_header) ((VOID *)(((UINT8*)_hob_header) + sizeof(POLICY_HOB_HEADER)))

#endif

0 comments on commit 664c75f

Please sign in to comment.