diff options
author | Aurélien Larcher <aurelien.larcher@gmail.com> | 2015-02-23 21:25:10 +0100 |
---|---|---|
committer | Aurélien Larcher <aurelien.larcher@gmail.com> | 2015-02-23 21:25:10 +0100 |
commit | 2d710e570505bbf62743de2b2f41563bc84c9e37 (patch) | |
tree | 19a2af7286962a0839d0562640c7af9e10452109 /src | |
parent | 141cfd959d216431e6313e9f9b8de7ece3373b88 (diff) |
define MIN/MAX in case they're not defined
Used for OpenIndiana
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/private.h b/src/bin/private.h index 720326a..7f7d7fc 100644 --- a/src/bin/private.h +++ b/src/bin/private.h | |||
@@ -20,4 +20,11 @@ extern int _log_domain; | |||
20 | #define INF(...) EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__) | 20 | #define INF(...) EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__) |
21 | #define DBG(...) EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__) | 21 | #define DBG(...) EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__) |
22 | 22 | ||
23 | #ifndef MIN | ||
24 | # define MIN(x, y) (((x) > (y)) ? (y) : (x)) | ||
25 | #endif | ||
26 | #ifndef MAX | ||
27 | # define MAX(x, y) (((x) > (y)) ? (x) : (y)) | ||
28 | #endif | ||
29 | |||
23 | #endif | 30 | #endif |