frameworks/native/include/binder/Parcel.h:69: 错误: expected ‘,’ or ‘…’ before ‘struct’



编win版本SDK遇到的问题

frameworks/native/include/binder/Parcel.h:69: 错误: expected ‘,’ or ‘…’ before ‘struct’

frameworks/native/include/binder/Parcel.h:78: 错误: expected ‘,’ or ‘…’ before ‘struct’
make[1]: *** [/home/tony.wu/project_tony/code/cm/cm-11.0/out/host/windows-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/AssetManager.o] 错误 1

查看frameworks/native/include/binder/Parcel.h代码 

   // Writes the RPC header.
   status_t            writeInterfaceToken(const String16& interface);
   bool                enforceInterface(const String16& interface,
                                        IPCThreadState* threadState = NULL) const;

应该是interface 被宏义为struct。

所以在该文件中加入取消宏定义的代码。

#undef interface //加入的代码
class Parcel {

N久的等待,终于在out\host\windows\sdk\下生成SDK包。