fix windows build

thread_defs.h gets included by the windows host libandroidfw build,
which does not have sys/cdefs.h or BEGIN_DECLS.  Switch to using
extern "C" manually.

Change-Id: I363e6f2d3a64c5efeff54049a2e5dab080fd4715
This commit is contained in:
Colin Cross 2013-07-23 19:58:03 -07:00
parent 511f9efff7
commit 42cf2b5945
1 changed files with 6 additions and 3 deletions

View File

@ -17,10 +17,11 @@
#ifndef ANDROID_THREAD_DEFS_H
#define ANDROID_THREAD_DEFS_H
#include <sys/cdefs.h>
#include "graphics.h"
__BEGIN_DECLS
#if defined(__cplusplus)
extern "C" {
#endif
enum {
/*
@ -69,6 +70,8 @@ enum {
ANDROID_PRIORITY_LESS_FAVORABLE = +1,
};
__END_DECLS
#if defined(__cplusplus)
}
#endif
#endif /* ANDROID_THREAD_DEFS_H */