summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2016-02-08 19:37:01 +0100
committerPeter Maydell2016-02-16 15:29:27 +0100
commit07b096b41873bd64d01c7d59e43066793ef0e95c (patch)
tree7e8f95c112167b8add70bc981c229267b8517807
parentlibdecnumber: Clean up includes (diff)
downloadqemu-07b096b41873bd64d01c7d59e43066793ef0e95c.tar.gz
qemu-07b096b41873bd64d01c7d59e43066793ef0e95c.tar.xz
qemu-07b096b41873bd64d01c7d59e43066793ef0e95c.zip
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>
-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 7fa170990f..0665caf7f5 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;