summaryrefslogtreecommitdiffstats
path: root/tests/i440fx-test.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-02-08 18:37:01 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:28 -0600
commit3504aac29a8e665012783db6a718aee8c63436cc (patch)
tree87787c75f7969f8cfd652108c669d196b9014508 /tests/i440fx-test.c
parent5d4e52d40282541ff38f850a12b9c91fc4132348 (diff)
downloadhqemu-3504aac29a8e665012783db6a718aee8c63436cc.zip
hqemu-3504aac29a8e665012783db6a718aee8c63436cc.tar.gz
tests/i440fx-test: Don't define ARRAY_SIZE locally
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>
Diffstat (limited to 'tests/i440fx-test.c')
-rw-r--r--tests/i440fx-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c
index 7fa1709..0665caf 100644
--- a/tests/i440fx-test.c
+++ b/tests/i440fx-test.c
@@ -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;
OpenPOWER on IntegriCloud