diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index 564faa18aa8..02742c4cf4a 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -45,16 +45,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | 45 | ||
| 46 | #include <verify.h> | 46 | #include <verify.h> |
| 47 | 47 | ||
| 48 | #if (defined ENABLE_CHECKING && \ | 48 | #if (defined ENABLE_CHECKING \ |
| 49 | defined HAVE_VALGRIND_VALGRIND_H && \ | 49 | && defined HAVE_VALGRIND_VALGRIND_H \ |
| 50 | !defined USE_VALGRIND) | 50 | && !defined USE_VALGRIND) |
| 51 | # define USE_VALGRIND 1 | 51 | # define USE_VALGRIND 1 |
| 52 | #endif | 52 | #endif |
| 53 | 53 | ||
| 54 | #if USE_VALGRIND | 54 | #if USE_VALGRIND |
| 55 | #include <valgrind/valgrind.h> | 55 | #include <valgrind/valgrind.h> |
| 56 | #include <valgrind/memcheck.h> | 56 | #include <valgrind/memcheck.h> |
| 57 | static int valgrind_p; | 57 | static bool valgrind_p; |
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | /* GC_CHECK_MARKED_OBJECTS means do sanity checks on allocated objects. | 60 | /* GC_CHECK_MARKED_OBJECTS means do sanity checks on allocated objects. |
| @@ -6667,7 +6667,7 @@ init_alloc (void) | |||
| 6667 | gcs_done = 0; | 6667 | gcs_done = 0; |
| 6668 | 6668 | ||
| 6669 | #if USE_VALGRIND | 6669 | #if USE_VALGRIND |
| 6670 | valgrind_p = RUNNING_ON_VALGRIND; | 6670 | valgrind_p = RUNNING_ON_VALGRIND != 0; |
| 6671 | #endif | 6671 | #endif |
| 6672 | } | 6672 | } |
| 6673 | 6673 | ||