diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-21 15:57:03 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-22 16:43:44 -0400 |
| commit | 33db42def2ce6fe040b5f77642347e8b3c6420e5 (patch) | |
| tree | 1cb9857acb523d9d5e2be6222328a38a5d4b1e74 /include/endian.h | |
| parent | d4494b5cff75b64a70cb27b2d8544b4debb7fa6b (diff) | |
| download | efi-boot-shim-33db42def2ce6fe040b5f77642347e8b3c6420e5.tar.gz efi-boot-shim-33db42def2ce6fe040b5f77642347e8b3c6420e5.zip | |
Make 'make test' work on gcc 4.8.5
Diffstat (limited to 'include/endian.h')
| -rw-r--r-- | include/endian.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/endian.h b/include/endian.h index 267fbf00..1c4a21de 100644 --- a/include/endian.h +++ b/include/endian.h @@ -3,9 +3,11 @@ * endian.h - bswap decls that can't go in compiler.h * Copyright Peter Jones <pjones@redhat.com> */ - -#ifndef ENDIAN_H_ -#define ENDIAN_H_ +#ifdef SHIM_UNIT_TEST +#include_next <endian.h> +#endif +#ifndef SHIM_ENDIAN_H_ +#define SHIM_ENDIAN_H_ #include <stdint.h> @@ -15,5 +17,5 @@ mkbi1_(uint32_t, bswap32, uint32_t, x) mkbi1_(uint64_t, bswap64, uint64_t, x) #include "system/builtins_end_.h" -#endif /* !ENDIAN_H_ */ +#endif /* !SHIM_ENDIAN_H_ */ // vim:fenc=utf-8:tw=75:noet |
