define MIN/MAX in case they're not defined

Used for OpenIndiana
This commit is contained in:
Aurélien Larcher 2015-02-23 21:25:10 +01:00
parent 141cfd959d
commit 2d710e5705
1 changed files with 7 additions and 0 deletions

View File

@ -20,4 +20,11 @@ extern int _log_domain;
#define INF(...) EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__)
#define DBG(...) EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__)
#ifndef MIN
# define MIN(x, y) (((x) > (y)) ? (y) : (x))
#endif
#ifndef MAX
# define MAX(x, y) (((x) > (y)) ? (x) : (y))
#endif
#endif