*bsd*)
EINA_LIBS="${EINA_LIBS} -lrt -lm"
;;
+ *darwin*)
+ EINA_LIBS="${EINA_LIBS} -lm"
+ ;;
*)
EINA_LIBS="${EINA_LIBS} -ldl -lrt -lm"
;;
#else /* no safety checks */
#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) \
do { if (0 && (exp) == NULL) (void)val; } while (0)
#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) \
do { if (0 && (exp)) (void)val; } while (0)
#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) \
do { if (0 && !(exp)) (void)val; } while (0)
return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp);
#elif defined(CLOCK_PROF)
return clock_gettime(CLOCK_PROF, tp);
-#else
+#elif defined(CLOCK_REALTIME)
return clock_gettime(CLOCK_REALTIME, tp);
+#else
+ return gettimeofday(tp, NULL);
#endif
}
#else