elf: Add header guard to elf.h

Added header guard in elf.h file to allow safe include this header by
multiple units.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
This commit is contained in:
Adrian Warecki 2023-03-07 13:40:21 +01:00 committed by Liam Girdwood
parent 9643a986dd
commit b2177e5585
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,9 @@
* Portions Copyright 2009 The Go Authors. All rights reserved.
*/
#ifndef __ELF_H__
#define __ELF_H__
/*
* ELF definitions that are independent of architecture or word size.
*/
@ -929,3 +932,5 @@ typedef struct {
#define ELF32SHDRSIZE sizeof(Elf32_Shdr)
#define ELF32SYMSIZE sizeof(Elf32_Sym)
#define ELF32RELSIZE 8
#endif /* __ELF_H__ */