Add double inclusion protection and prepare for use with C++ code.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31138 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-12-04 13:54:18 +00:00
parent 2d2fa5c128
commit 346f1e0fc6

View file

@ -19,10 +19,16 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef MKIMXBOOT_H
#define MKIMXBOOT_H
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
enum imx_error_t enum imx_error_t
{ {
IMX_SUCCESS = 0, IMX_SUCCESS = 0,
@ -52,3 +58,9 @@ struct imx_option_t
enum imx_error_t mkimxboot(const char *infile, const char *bootfile, enum imx_error_t mkimxboot(const char *infile, const char *bootfile,
const char *outfile, struct imx_option_t opt); const char *outfile, struct imx_option_t opt);
#ifdef __cplusplus
}
#endif
#endif