aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'intel/test_decode.c')
-rw-r--r--intel/test_decode.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c
index b4eddcd1..b9f5b927 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <string.h> 24#include <string.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <stdio.h> 26#include <stdio.h>
@@ -91,7 +87,7 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
91{ 87{
92 FILE *out = NULL; 88 FILE *out = NULL;
93 void *ptr, *ref_ptr, *batch_ptr; 89 void *ptr, *ref_ptr, *batch_ptr;
94#ifdef HAVE_OPEN_MEMSTREAM 90#if HAVE_OPEN_MEMSTREAM
95 size_t size; 91 size_t size;
96#endif 92#endif
97 size_t ref_size, batch_size; 93 size_t ref_size, batch_size;
@@ -109,7 +105,7 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
109 * figure out how to output to a file in a safe and sane way 105 * figure out how to output to a file in a safe and sane way
110 * inside of an automake project's test infrastructure. 106 * inside of an automake project's test infrastructure.
111 */ 107 */
112#ifdef HAVE_OPEN_MEMSTREAM 108#if HAVE_OPEN_MEMSTREAM
113 out = open_memstream((char **)&ptr, &size); 109 out = open_memstream((char **)&ptr, &size);
114#else 110#else
115 fprintf(stderr, "platform lacks open_memstream, skipping.\n"); 111 fprintf(stderr, "platform lacks open_memstream, skipping.\n");