diff options
Diffstat (limited to 'samsung-ril.h')
-rw-r--r-- | samsung-ril.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/samsung-ril.h b/samsung-ril.h index 3d4d9fc..8cc012d 100644 --- a/samsung-ril.h +++ b/samsung-ril.h @@ -47,22 +47,34 @@ * Macros */ -#ifdef ALOGI +#if defined(RLOGI) +#define RIL_LOGI RLOGI +#elif defined(ALOGI) #define RIL_LOGI ALOGI -#else +#elif defined(LOGI) #define RIL_LOGI LOGI +#else +#error "Cannot define RIL_LOGI" #endif -#ifdef ALOGD +#if defined(RLOGD) +#define RIL_LOGD RLOGD +#elif defined(ALOGD) #define RIL_LOGD ALOGD -#else +#elif defined(LOGD) #define RIL_LOGD LOGD +#else +#error "Cannot define RIL_LOGD" #endif -#ifdef ALOGE +#if defined(RLOGE) +#define RIL_LOGE RLOGE +#elif defined(ALOGE) #define RIL_LOGE ALOGE -#else +#elif defined(LOGE) #define RIL_LOGE LOGE +#else +#error "Cannot define RIL_LOGE" #endif #define RIL_LOCK() pthread_mutex_lock(&ril_data->mutex) |