am dede575e: Merge "Make libportable.a compile on host"
* commit 'dede575e48079f9f0970796ffe1f471a30c5d97c': Make libportable.a compile on host
This commit is contained in:
@@ -81,7 +81,8 @@ static inline char *portable_tag() {
|
|||||||
_rv; /* Returned to caller */ \
|
_rv; /* Returned to caller */ \
|
||||||
})
|
})
|
||||||
|
|
||||||
# include <cutils/log.h>
|
#if !defined(HAS_NO_LOG_H)
|
||||||
|
#include <cutils/log.h>
|
||||||
|
|
||||||
# define PERROR(str) { \
|
# define PERROR(str) { \
|
||||||
ALOGE("%s: PERROR('%s'): errno:%d:'%s'", __func__, str, errno, strerror(errno)); \
|
ALOGE("%s: PERROR('%s'): errno:%d:'%s'", __func__, str, errno, strerror(errno)); \
|
||||||
@@ -89,4 +90,9 @@ static inline char *portable_tag() {
|
|||||||
|
|
||||||
# define ASSERT(cond) ALOG_ASSERT(cond, "assertion failed:(%s), file: %s, line: %d:%s", \
|
# define ASSERT(cond) ALOG_ASSERT(cond, "assertion failed:(%s), file: %s, line: %d:%s", \
|
||||||
#cond, __FILE__, __LINE__, __func__);
|
#cond, __FILE__, __LINE__, __func__);
|
||||||
|
#else
|
||||||
|
|
||||||
|
# define PERROR(str) fprintf(stderr, "%s: PERROR('%s'): errno:%d:'%s'", __func__, str, errno, strerror(errno))
|
||||||
|
# define ASSERT(cond) assert(cond)
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user