[cairo] [PATCH] TRIVIAL add missing limits.h to cairo_traps.c

John K Luebs jkluebs at luebsphoto.com
Sun Apr 18 23:19:48 PDT 2004


Hello,

The new pattern code added the use of SHRT_MAX and SHRT_MIN to
cairo_traps.c but the file doesn't have a <limits.h> include.

This patches adds the necessary cpp include directive.

Thanks for the great work on cairo,
 -jkl


diff -puN src/cairo_traps.c~cairo-traps-limits-include src/cairo_traps.c
--- cairo/src/cairo_traps.c~cairo-traps-limits-include	2004-04-19 02:09:35.000000000 -0400
+++ cairo-luebsj/src/cairo_traps.c	2004-04-19 02:10:34.000000000 -0400
@@ -22,6 +22,8 @@
  * 2002-07-15: Converted from XRenderCompositeDoublePoly to cairo_trap. Carl D. Worth
  */
 
+#include <limits.h>
+
 #include "cairoint.h"
 
 #define CAIRO_TRAPS_GROWTH_INC 10

_




More information about the cairo mailing list