Move stdbool.h

Move inclusion of stdbool.h to common header files, instead of including
in an ad-hoc manner.

Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
Paul Brook 2010-06-13 19:00:50 +01:00
parent ea4e78e590
commit 11165820d1
14 changed files with 2 additions and 15 deletions

View File

@ -26,8 +26,6 @@
#include "block_int.h" #include "block_int.h"
#include "module.h" #include "module.h"
#include <stdbool.h>
typedef struct BlkdebugVars { typedef struct BlkdebugVars {
int state; int state;

View File

@ -9,7 +9,6 @@
* *
*/ */
#include <check.h> #include <check.h>
#include <stdbool.h>
#include "qstring.h" #include "qstring.h"
#include "qint.h" #include "qint.h"

View File

@ -31,6 +31,7 @@
host headers do not allow that. */ host headers do not allow that. */
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h>
#ifdef __OpenBSD__ #ifdef __OpenBSD__
#include <sys/types.h> #include <sys/types.h>

View File

@ -14,8 +14,6 @@
#ifndef QEMU_9P_H #ifndef QEMU_9P_H
#define QEMU_9P_H #define QEMU_9P_H
#include <stdbool.h>
typedef struct V9fsConf typedef struct V9fsConf
{ {
/* tag name for the device */ /* tag name for the device */

View File

@ -41,7 +41,6 @@
* * Wake-on-LAN is not implemented. * * Wake-on-LAN is not implemented.
*/ */
#include <stdbool.h> /* bool */
#include <stddef.h> /* offsetof */ #include <stddef.h> /* offsetof */
#include "hw.h" #include "hw.h"
#include "pci.h" #include "pci.h"

View File

@ -8,7 +8,6 @@
#include "cpu-common.h" #include "cpu-common.h"
#endif #endif
#include <stdbool.h>
#include "ioport.h" #include "ioport.h"
#include "irq.h" #include "irq.h"

View File

@ -15,7 +15,6 @@
#ifndef _QEMU_VIRTIO_SERIAL_H #ifndef _QEMU_VIRTIO_SERIAL_H
#define _QEMU_VIRTIO_SERIAL_H #define _QEMU_VIRTIO_SERIAL_H
#include <stdbool.h>
#include "qdev.h" #include "qdev.h"
#include "virtio.h" #include "virtio.h"

View File

@ -29,7 +29,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <stdbool.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -11,7 +11,6 @@
* *
*/ */
#include <stdbool.h>
#include <stdarg.h> #include <stdarg.h>
#include "qemu-common.h" #include "qemu-common.h"

1
kvm.h
View File

@ -14,7 +14,6 @@
#ifndef QEMU_KVM_H #ifndef QEMU_KVM_H
#define QEMU_KVM_H #define QEMU_KVM_H
#include <stdbool.h>
#include <errno.h> #include <errno.h>
#include "config-host.h" #include "config-host.h"
#include "qemu-queue.h" #include "qemu-queue.h"

1
nbd.h
View File

@ -20,7 +20,6 @@
#define NBD_H #define NBD_H
#include <sys/types.h> #include <sys/types.h>
#include <stdbool.h>
#include <qemu-common.h> #include <qemu-common.h>
#include "block_int.h" #include "block_int.h"

1
net.h
View File

@ -1,7 +1,6 @@
#ifndef QEMU_NET_H #ifndef QEMU_NET_H
#define QEMU_NET_H #define QEMU_NET_H
#include <stdbool.h>
#include "qemu-queue.h" #include "qemu-queue.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qdict.h" #include "qdict.h"

View File

@ -26,6 +26,7 @@ typedef struct QEMUBH QEMUBH;
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -26,8 +26,6 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include <stdbool.h>
#include "qdict.h" #include "qdict.h"
#include "qint.h" #include "qint.h"
#include "vnc.h" #include "vnc.h"