audio: Use ARRAY_SIZE from qemu/osdep.h
authorJuan Quintela <quintela@redhat.com>
Tue, 25 Apr 2017 22:37:39 +0000 (00:37 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 May 2017 07:16:05 +0000 (09:16 +0200)
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>
hw/audio/fmopl.c

index dc9043c32d8ba6cb435324d51760d3b50a06f544..202f752c5d9b6ee764cdefd494e7c7448f3e7f6a 100644 (file)
 #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