diff options
Diffstat (limited to 'libsparse/sparse_format.h')
-rw-r--r-- | libsparse/sparse_format.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libsparse/sparse_format.h b/libsparse/sparse_format.h index c41f12a54..779e0385d 100644 --- a/libsparse/sparse_format.h +++ b/libsparse/sparse_format.h | |||
@@ -18,6 +18,10 @@ | |||
18 | #define _LIBSPARSE_SPARSE_FORMAT_H_ | 18 | #define _LIBSPARSE_SPARSE_FORMAT_H_ |
19 | #include "sparse_defs.h" | 19 | #include "sparse_defs.h" |
20 | 20 | ||
21 | #ifdef __cplusplus | ||
22 | extern "C" { | ||
23 | #endif | ||
24 | |||
21 | typedef struct sparse_header { | 25 | typedef struct sparse_header { |
22 | __le32 magic; /* 0xed26ff3a */ | 26 | __le32 magic; /* 0xed26ff3a */ |
23 | __le16 major_version; /* (0x1) - reject images with higher major versions */ | 27 | __le16 major_version; /* (0x1) - reject images with higher major versions */ |
@@ -52,4 +56,8 @@ typedef struct chunk_header { | |||
52 | * For a CRC32 chunk, it's 4 bytes of CRC32 | 56 | * For a CRC32 chunk, it's 4 bytes of CRC32 |
53 | */ | 57 | */ |
54 | 58 | ||
59 | #ifdef __cplusplus | ||
60 | } | ||
61 | #endif | ||
62 | |||
55 | #endif | 63 | #endif |