diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-01-17 20:22:28 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-17 20:24:56 +0100 |
commit | 9ca75aa716c2441ae5359417f83ff10cd295abc1 (patch) | |
tree | 9d250ef4052eb0f3080a4a7931ea13584c4de7c2 /include | |
parent | 7717134caf490d306b69a80d9be89c655f2dfc91 (diff) | |
download | mupdf-9ca75aa716c2441ae5359417f83ff10cd295abc1.tar.xz |
Automatically turn on PACIFY_VALGRIND for debug builds.
Add 'build=valgrind' configuration.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/system.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index 54e9c877..5d0341b4 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -14,6 +14,13 @@ #endif #endif +/* Turn on valgrind pacification in debug builds. */ +#ifndef NDEBUG +#ifndef PACIFY_VALGRIND +#define PACIFY_VALGRIND +#endif +#endif + /* Include the standard libc headers. */ |