From 346f1e0fc633011228c94e21c33bdfe04ba0bc08 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 4 Dec 2011 13:54:18 +0000 Subject: 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 --- rbutil/mkimxboot/mkimxboot.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rbutil') diff --git a/rbutil/mkimxboot/mkimxboot.h b/rbutil/mkimxboot/mkimxboot.h index 1cbc3b2378..4ee1ca20cf 100644 --- a/rbutil/mkimxboot/mkimxboot.h +++ b/rbutil/mkimxboot/mkimxboot.h @@ -19,10 +19,16 @@ * ****************************************************************************/ +#ifndef MKIMXBOOT_H +#define MKIMXBOOT_H + #include #include #include +#ifdef __cplusplus +extern "C" { +#endif enum imx_error_t { IMX_SUCCESS = 0, @@ -52,3 +58,9 @@ struct imx_option_t enum imx_error_t mkimxboot(const char *infile, const char *bootfile, const char *outfile, struct imx_option_t opt); + +#ifdef __cplusplus +} +#endif +#endif + -- cgit v1.2.3