ext/escape_utils/buffer.h in escape_utils-1.1.1 vs ext/escape_utils/buffer.h in escape_utils-1.2.0

- old
+ new

@@ -108,6 +108,12 @@ extern int gh_buf_vprintf(gh_buf *buf, const char *format, va_list ap); extern void gh_buf_clear(gh_buf *buf); #define gh_buf_PUTS(buf, str) gh_buf_put(buf, str, sizeof(str) - 1) +/* support for environments where MIN is not provided */ + +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + #endif