forked from len0rd/rockbox
Android: Fix two warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27975 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f05cdc46f2
commit
8ec51135b6
2 changed files with 4 additions and 1 deletions
|
@ -33,5 +33,6 @@ extern DIR* _opendir(const char* name);
|
||||||
extern int _mkdir(const char* name);
|
extern int _mkdir(const char* name);
|
||||||
extern int _closedir(DIR* dir);
|
extern int _closedir(DIR* dir);
|
||||||
extern struct dirent *_readdir(DIR* dir);
|
extern struct dirent *_readdir(DIR* dir);
|
||||||
|
extern void fat_size(unsigned long *size, unsigned long *free);
|
||||||
|
|
||||||
#endif /* __DIR_TARGET_H__ */
|
#endif /* __DIR_TARGET_H__ */
|
||||||
|
|
|
@ -39,6 +39,7 @@ uintptr_t *stackbegin;
|
||||||
uintptr_t *stackend;
|
uintptr_t *stackend;
|
||||||
|
|
||||||
extern int main(void);
|
extern int main(void);
|
||||||
|
extern void powermgmt_init_target(void);
|
||||||
/* this is the entry point of the android app initially called by jni */
|
/* this is the entry point of the android app initially called by jni */
|
||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this)
|
Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this)
|
||||||
|
@ -56,7 +57,8 @@ Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this)
|
||||||
RockboxService_instance = this;
|
RockboxService_instance = this;
|
||||||
RockboxService_class = (*env)->GetObjectClass(env, this);
|
RockboxService_class = (*env)->GetObjectClass(env, this);
|
||||||
|
|
||||||
|
/* no better place yet, most of powermgmt.c is #ifdef'd out for non-native
|
||||||
|
* builds */
|
||||||
powermgmt_init_target();
|
powermgmt_init_target();
|
||||||
main();
|
main();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue