diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-06-25 15:43:14 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-06-25 15:43:14 +0100 |
commit | 8de9bfd5c1e62fc9cdcd720303c15edd251a7c2c (patch) | |
tree | 15f8842366e497b5a301f118895bb1749a01a04b /pdf/pdf_form.c | |
parent | f35c11d2852e8878f977145e3d2fd20f29eaf485 (diff) | |
download | mupdf-8de9bfd5c1e62fc9cdcd720303c15edd251a7c2c.tar.xz |
Fix warnings/compile error on linux.
min is a windows only define.
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r-- | pdf/pdf_form.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index e0dc0f06..56e2e5d8 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -823,7 +823,7 @@ static fz_buffer *create_text_appearance(pdf_document *doc, fz_rect *bbox, fz_ma } else if (info->comb) { - int i, n = min((int)strlen(text), info->max_len); + int i, n = MIN((int)strlen(text), info->max_len); float comb_width = full_width/info->max_len; float char_width = pdf_text_stride(ctx, info->font_rec.font, fontsize, (unsigned char *)"M", 1, FLT_MAX, NULL); float init_skip = (comb_width - char_width)/2.0; |