diff options
-rw-r--r-- | src/macros.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h index 63d59eb72..9c73f38f3 100644 --- a/src/macros.h +++ b/src/macros.h @@ -20,7 +20,11 @@ #undef max #endif -template <typename T> T max(T a, T b) { return a >= b ? a : b; } +template <typename T> +static inline T max(T a, T b) +{ + return a >= b ? a : b; +} static inline int min(int a, int b) { if (a <= b) return a; return b; } |