[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] i440fx-test: guard ARRAY_SIZE definition with #ifnd
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH] i440fx-test: guard ARRAY_SIZE definition with #ifndef |
Date: |
Thu, 30 Apr 2015 15:16:30 -0400 |
ARRAY_SIZE is defined in osdep.h so having an unconditional
definition here is fragile.
Signed-off-by: Emilio G. Cota <address@hidden>
---
tests/i440fx-test.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c
index d0bc8de..d610e66 100644
--- a/tests/i440fx-test.c
+++ b/tests/i440fx-test.c
@@ -27,7 +27,9 @@
#define BROKEN 1
+#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
+#endif
typedef struct TestData
{
--
1.9.1
- [Qemu-devel] [PULL 08/42] misc: Fix new collection of typos, (continued)
- [Qemu-devel] [PULL 08/42] misc: Fix new collection of typos, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 33/42] qemu-char: remove unused list node from FDCharDriver, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 34/42] coroutine: remove unnecessary parentheses in qemu_co_queue_empty, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 11/42] tpm: fix coding style, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 15/42] pci: Remove unused function ich9_d2pbr_init(), Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 22/42] libcacard: stop including qemu-common.h, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 36/42] i440fx-test: remove ARRAY_SIZE redefinition, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 21/42] docs/atomics.txt: fix two typos, Michael Tokarev, 2015/04/30
- Re: [Qemu-devel] [PULL 00/42] Trivial patches for 2015-04-30, Peter Maydell, 2015/04/30
[Qemu-devel] [PULL 00/42] Trivial patches for 2015-04-30, Michael Tokarev, 2015/04/30