summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/nonfatal-assertions.patch
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /gfx/cairo/nonfatal-assertions.patch
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'gfx/cairo/nonfatal-assertions.patch')
-rw-r--r--gfx/cairo/nonfatal-assertions.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/gfx/cairo/nonfatal-assertions.patch b/gfx/cairo/nonfatal-assertions.patch
new file mode 100644
index 000000000..dcbb904ab
--- /dev/null
+++ b/gfx/cairo/nonfatal-assertions.patch
@@ -0,0 +1,17 @@
+diff -r b79d47dad1ea gfx/cairo/cairo/src/cairoint.h
+--- 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
+@@ -159,6 +159,13 @@ CAIRO_BEGIN_DECLS
+
+ #ifndef M_PI
+ #define M_PI 3.14159265358979323846
++#endif
++
++#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
+
+ #undef ARRAY_LENGTH