forked from enlightenment/efl
parent
519296191d
commit
c2bab4e388
|
@ -298,6 +298,9 @@ case "${host_os}" in
|
||||||
*bsd*)
|
*bsd*)
|
||||||
EINA_LIBS="${EINA_LIBS} -lrt -lm"
|
EINA_LIBS="${EINA_LIBS} -lrt -lm"
|
||||||
;;
|
;;
|
||||||
|
*darwin*)
|
||||||
|
EINA_LIBS="${EINA_LIBS} -lm"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
EINA_LIBS="${EINA_LIBS} -ldl -lrt -lm"
|
EINA_LIBS="${EINA_LIBS} -ldl -lrt -lm"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -98,19 +98,19 @@
|
||||||
#else /* no safety checks */
|
#else /* no safety checks */
|
||||||
|
|
||||||
#define EINA_SAFETY_ON_NULL_RETURN(exp) \
|
#define EINA_SAFETY_ON_NULL_RETURN(exp) \
|
||||||
do { (void)((exp) == NULL) } while (0)
|
do { (void)((exp) == NULL); } while (0)
|
||||||
|
|
||||||
#define EINA_SAFETY_ON_NULL_RETURN_VAL(exp, val) \
|
#define EINA_SAFETY_ON_NULL_RETURN_VAL(exp, val) \
|
||||||
do { if (0 && (exp) == NULL) (void)val; } while (0)
|
do { if (0 && (exp) == NULL) (void)val; } while (0)
|
||||||
|
|
||||||
#define EINA_SAFETY_ON_TRUE_RETURN(exp) \
|
#define EINA_SAFETY_ON_TRUE_RETURN(exp) \
|
||||||
do { (void)(exp) } while (0)
|
do { (void)(exp); } while (0)
|
||||||
|
|
||||||
#define EINA_SAFETY_ON_TRUE_RETURN_VAL(exp, val) \
|
#define EINA_SAFETY_ON_TRUE_RETURN_VAL(exp, val) \
|
||||||
do { if (0 && (exp)) (void)val; } while (0)
|
do { if (0 && (exp)) (void)val; } while (0)
|
||||||
|
|
||||||
#define EINA_SAFETY_ON_FALSE_RETURN(exp) \
|
#define EINA_SAFETY_ON_FALSE_RETURN(exp) \
|
||||||
do { (void)((!exp)) } while (0)
|
do { (void)((!exp)); } while (0)
|
||||||
|
|
||||||
#define EINA_SAFETY_ON_FALSE_RETURN_VAL(exp, val) \
|
#define EINA_SAFETY_ON_FALSE_RETURN_VAL(exp, val) \
|
||||||
do { if (0 && !(exp)) (void)val; } while (0)
|
do { if (0 && !(exp)) (void)val; } while (0)
|
||||||
|
|
|
@ -83,8 +83,10 @@ _eina_counter_time_get(Eina_Nano_Time *tp)
|
||||||
return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp);
|
return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp);
|
||||||
#elif defined(CLOCK_PROF)
|
#elif defined(CLOCK_PROF)
|
||||||
return clock_gettime(CLOCK_PROF, tp);
|
return clock_gettime(CLOCK_PROF, tp);
|
||||||
#else
|
#elif defined(CLOCK_REALTIME)
|
||||||
return clock_gettime(CLOCK_REALTIME, tp);
|
return clock_gettime(CLOCK_REALTIME, tp);
|
||||||
|
#else
|
||||||
|
return gettimeofday(tp, NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue