summaryrefslogtreecommitdiffstats
path: root/rbutil/mkimxboot/mkimxboot.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-04 13:54:18 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-04 13:54:18 +0000
commit346f1e0fc633011228c94e21c33bdfe04ba0bc08 (patch)
treec058517bd32a9b5c3c1c78a33bc123a0cc07b9ec /rbutil/mkimxboot/mkimxboot.h
parent2d2fa5c128cd8d55f3b8ca84e9166519896cd0b9 (diff)
downloadrockbox-346f1e0fc633011228c94e21c33bdfe04ba0bc08.tar.gz
rockbox-346f1e0fc633011228c94e21c33bdfe04ba0bc08.zip
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
Diffstat (limited to 'rbutil/mkimxboot/mkimxboot.h')
-rw-r--r--rbutil/mkimxboot/mkimxboot.h12
1 files changed, 12 insertions, 0 deletions
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 <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
+#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
+