mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 382741. Make cairo asserts non-fatal. May fix tinderbox issues with crashing with new-textframe. r=vlad
This commit is contained in:
parent
d663b1c653
commit
0a8d95d074
@ -240,6 +240,13 @@ typedef void *cairo_mutex_t;
|
||||
#endif
|
||||
|
||||
#ifndef MOZILLA_CAIRO_NOT_DEFINED
|
||||
/* Make assertions non-fatal */
|
||||
#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
|
||||
#ifndef INT32_MAX
|
||||
# ifdef INT_MAX
|
||||
# define INT32_MAX INT_MAX
|
||||
|
Loading…
Reference in New Issue
Block a user