2007-08-02 07:01:36 +00:00
|
|
|
diff -r b79d47dad1ea gfx/cairo/cairo/src/cairoint.h
|
2008-11-06 07:48:23 +00:00
|
|
|
--- a/gfx/cairo/cairo/src/cairoint.h Fri Jun 08 18:09:53 2007 -0700
|
|
|
|
+++ b/gfx/cairo/cairo/src/cairoint.h Fri Jun 29 09:18:02 2007 +0200
|
2007-08-02 07:01:36 +00:00
|
|
|
@@ -159,6 +159,13 @@ CAIRO_BEGIN_DECLS
|
2007-06-13 22:49:19 +00:00
|
|
|
|
|
|
|
#ifndef M_PI
|
|
|
|
#define M_PI 3.14159265358979323846
|
2007-08-02 07:01:36 +00:00
|
|
|
+#endif
|
|
|
|
+
|
2007-06-13 22:49:19 +00:00
|
|
|
+#ifndef NDEBUG
|
|
|
|
+#undef assert
|
|
|
|
+#define assert(expr) \
|
|
|
|
+ do { if (!(expr)) fprintf(stderr, "Assertion failed at %s:%d: %s\n", \
|
|
|
|
+ __FILE__, __LINE__, #expr); } while (0)
|
|
|
|
#endif
|
|
|
|
|
2007-08-02 07:01:36 +00:00
|
|
|
#undef ARRAY_LENGTH
|