rbutil: move extern "C" declaration into mkamsboot.h

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22319 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2009-08-15 14:09:05 +00:00
parent f4e2d83f04
commit cb55d5c65f
2 changed files with 9 additions and 4 deletions

View file

@ -28,6 +28,10 @@
#include <stdint.h> #include <stdint.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Supported models */ /* Supported models */
enum { enum {
MODEL_UNKNOWN = -1, MODEL_UNKNOWN = -1,
@ -152,4 +156,8 @@ int total_size(int model, int rb_packedsize, int of_packedsize);
*/ */
int firmware_revision(int model); int firmware_revision(int model);
#ifdef __cplusplus
};
#endif
#endif #endif

View file

@ -21,10 +21,7 @@
#include "bootloaderinstallbase.h" #include "bootloaderinstallbase.h"
#include "bootloaderinstallams.h" #include "bootloaderinstallams.h"
extern "C" #include "../mkamsboot/mkamsboot.h"
{
#include "../mkamsboot/mkamsboot.h"
};
BootloaderInstallAms::BootloaderInstallAms(QObject *parent) BootloaderInstallAms::BootloaderInstallAms(QObject *parent)
: BootloaderInstallBase(parent) : BootloaderInstallBase(parent)