Replace max and min with defines
#ifndef MINMAX_H_
#define MINMAX_H_
-inline int64_t min_int64(int64_t a, int64_t b);
-inline int64_t max_int64(int64_t a, int64_t b);
-inline size_t min_size(size_t a, size_t b);
-inline size_t max_size(size_t a, size_t b);
-
-inline int64_t min_int64(int64_t a, int64_t b)
-{
- return a < b ? a : b;
-}
-
-inline int64_t max_int64(int64_t a, int64_t b)
-{
- return a > b ? a : b;
-}
-
-inline size_t min_size(size_t a, size_t b)
-{
- return a < b ? a : b;
-}
-
-inline size_t max_size(size_t a, size_t b)
-{
- return a > b ? a : b;
-}
+#define min_int64(a, b) (a < b ? a : b)
+#define max_int64(a, b) (a > b ? a : b)
+#define min_size(a, b) (a < b ? a : b)
+#define max_size(a, b) (a > b ? a : b)
#endif // MINMAX_H_
