diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /gfx/cairo/nonfatal-assertions.patch | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/nonfatal-assertions.patch')
-rw-r--r-- | gfx/cairo/nonfatal-assertions.patch | 17 |
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 0000000000..dcbb904abd --- /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 |