Hi,
I have a "C" code where I have done the following.
#include <utils/Errors.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
// My code
#ifdef __cplusplus
}
#endif /* __cplusplus */
I have included the required libraries too in make file
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils
However, upon compilation, I get the following error as I use the definitions given in utils/Errors.h file.
frameworks/base/include/utils/Errors.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'android'
Kindly let me know how to resolve this
Thanks and Regards,
Priya