diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2009-08-15 14:09:05 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2009-08-15 14:09:05 +0000 |
commit | cb55d5c65f8436b3de6bbf11686a961655183a93 (patch) | |
tree | 6504a5d49d649764523e534019889c05502e7304 | |
parent | f4e2d83f0479cbedafadb071e7031500db01a28b (diff) | |
download | rockbox-cb55d5c65f8436b3de6bbf11686a961655183a93.tar.gz rockbox-cb55d5c65f8436b3de6bbf11686a961655183a93.zip |
rbutil: move extern "C" declaration into mkamsboot.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22319 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/mkamsboot/mkamsboot.h | 8 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstallams.cpp | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/rbutil/mkamsboot/mkamsboot.h b/rbutil/mkamsboot/mkamsboot.h index 3e58341884..51f5b2f699 100644 --- a/rbutil/mkamsboot/mkamsboot.h +++ b/rbutil/mkamsboot/mkamsboot.h | |||
@@ -28,6 +28,10 @@ | |||
28 | #include <stdint.h> | 28 | #include <stdint.h> |
29 | #include <sys/types.h> | 29 | #include <sys/types.h> |
30 | 30 | ||
31 | #ifdef __cplusplus | ||
32 | extern "C" { | ||
33 | #endif | ||
34 | |||
31 | /* Supported models */ | 35 | /* Supported models */ |
32 | enum { | 36 | enum { |
33 | MODEL_UNKNOWN = -1, | 37 | MODEL_UNKNOWN = -1, |
@@ -152,4 +156,8 @@ int total_size(int model, int rb_packedsize, int of_packedsize); | |||
152 | */ | 156 | */ |
153 | int firmware_revision(int model); | 157 | int firmware_revision(int model); |
154 | 158 | ||
159 | #ifdef __cplusplus | ||
160 | }; | ||
161 | #endif | ||
162 | |||
155 | #endif | 163 | #endif |
diff --git a/rbutil/rbutilqt/base/bootloaderinstallams.cpp b/rbutil/rbutilqt/base/bootloaderinstallams.cpp index 9b357aedb6..7de6ee6837 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallams.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallams.cpp | |||
@@ -21,10 +21,7 @@ | |||
21 | #include "bootloaderinstallbase.h" | 21 | #include "bootloaderinstallbase.h" |
22 | #include "bootloaderinstallams.h" | 22 | #include "bootloaderinstallams.h" |
23 | 23 | ||
24 | extern "C" | 24 | #include "../mkamsboot/mkamsboot.h" |
25 | { | ||
26 | #include "../mkamsboot/mkamsboot.h" | ||
27 | }; | ||
28 | 25 | ||
29 | BootloaderInstallAms::BootloaderInstallAms(QObject *parent) | 26 | BootloaderInstallAms::BootloaderInstallAms(QObject *parent) |
30 | : BootloaderInstallBase(parent) | 27 | : BootloaderInstallBase(parent) |