diff options
author | Juan Quintela | 2017-04-26 00:37:39 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2017-05-04 09:16:05 +0200 |
commit | 9ea5ada76f34a0ef048b131c3a166d8564199bdb (patch) | |
tree | 1bab38b407868eea998bac7578c999a9e546ed5d /hw/audio | |
parent | audio: un-export OPLResetChip (diff) | |
download | qemu-9ea5ada76f34a0ef048b131c3a166d8564199bdb.tar.gz qemu-9ea5ada76f34a0ef048b131c3a166d8564199bdb.tar.xz qemu-9ea5ada76f34a0ef048b131c3a166d8564199bdb.zip |
audio: Use ARRAY_SIZE from qemu/osdep.h
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170425223739.6703-27-quintela@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/audio')
-rw-r--r-- | hw/audio/fmopl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index dc9043c32d..202f752c5d 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -34,15 +34,11 @@ #include <math.h> //#include "driver.h" /* use M.A.M.E. */ #include "fmopl.h" - +#include "qemu/osdep.h" #ifndef PI #define PI 3.14159265358979323846 #endif -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#endif - /* -------------------- for debug --------------------- */ /* #define OPL_OUTPUT_LOG */ #ifdef OPL_OUTPUT_LOG |