OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* System includes for vboot reference library. This is the ONLY | 6 /* System includes for vboot reference library. This is the ONLY |
7 * place in vboot_firmware where system headers may be included via | 7 * place in firmware/ where system headers may be included via |
8 * #include <...>, so that there's only one place that needs to be | 8 * #include <...>, so that there's only one place that needs to be |
9 * fixed up for platforms which don't have all the system includes. | 9 * fixed up for platforms which don't have all the system includes. |
10 * | 10 * |
11 * Stub files may still include system headers, because they're local | 11 * Files in firmware/stub may still include system headers, because |
12 * implementations and will be ported to each system anyway. */ | 12 * they're local implementations and will be ported to each system |
| 13 * anyway. */ |
13 | 14 |
14 #ifndef VBOOT_REFERENCE_SYSINCLUDES_H_ | 15 #ifndef VBOOT_REFERENCE_SYSINCLUDES_H_ |
15 #define VBOOT_REFERENCE_SYSINCLUDES_H_ | 16 #define VBOOT_REFERENCE_SYSINCLUDES_H_ |
16 | 17 |
17 #include <inttypes.h> /* For PRIu64 */ | 18 #include <inttypes.h> /* For PRIu64 */ |
18 #include <stdint.h> | 19 #include <stdint.h> |
19 #include <stdlib.h> | 20 #include <stdlib.h> |
20 | 21 |
21 #if defined(HAVE_ENDIAN_H) && defined(HAVE_LITTLE_ENDIAN) | 22 #if defined(HAVE_ENDIAN_H) && defined(HAVE_LITTLE_ENDIAN) |
22 #include <byteswap.h> | 23 #include <byteswap.h> |
23 #include <memory.h> | 24 #include <memory.h> |
24 #endif | 25 #endif |
25 | 26 |
26 | 27 |
27 #endif /* VBOOT_REFERENCE_SYSINCLUDES_H_ */ | 28 #endif /* VBOOT_REFERENCE_SYSINCLUDES_H_ */ |
OLD | NEW |