OSDN Git Service

tests/i440fx-test: Don't define ARRAY_SIZE locally
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Feb 2016 18:37:01 +0000 (18:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2016 14:29:27 +0000 (14:29 +0000)
Don't define ARRAY_SIZE locally; instead include osdep.h for it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/i440fx-test.c

index 7fa1709..0665caf 100644 (file)
@@ -12,6 +12,7 @@
  * See the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include <glib.h>
 #include <string.h>
 #include <stdio.h>
@@ -27,8 +28,6 @@
 
 #define BROKEN 1
 
-#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
-
 typedef struct TestData
 {
     int num_cpus;