diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2018-01-26 17:04:28 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@imgtec.com> | 2018-03-20 14:30:27 +0000 |
commit | 1a44bbae734fa6aa227d2ac621ff7884af1ae8ef (patch) | |
tree | 7a491caee1358e6cce7743f0d24389f3b29009ce /intel | |
parent | 32e0370e36e8263b1e7dfb75f76934dbfce53e9c (diff) |
meson,configure: always define HAVE_OPEN_MEMSTREAM
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'intel')
-rw-r--r-- | intel/test_decode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c index b4eddcd1..68f777b0 100644 --- a/intel/test_decode.c +++ b/intel/test_decode.c @@ -91,7 +91,7 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename) { FILE *out = NULL; void *ptr, *ref_ptr, *batch_ptr; -#ifdef HAVE_OPEN_MEMSTREAM +#if HAVE_OPEN_MEMSTREAM size_t size; #endif size_t ref_size, batch_size; @@ -109,7 +109,7 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename) * figure out how to output to a file in a safe and sane way * inside of an automake project's test infrastructure. */ -#ifdef HAVE_OPEN_MEMSTREAM +#if HAVE_OPEN_MEMSTREAM out = open_memstream((char **)&ptr, &size); #else fprintf(stderr, "platform lacks open_memstream, skipping.\n"); |