don't include stdbool.h in C++ sources

The "bool" type is built-in.
This commit is contained in:
Max Kellermann
2013-01-02 20:56:04 +01:00
parent 975deca85b
commit 22f0ef6d6b
15 changed files with 0 additions and 20 deletions

View File

@@ -23,8 +23,6 @@
#include "gcc.h" #include "gcc.h"
#include "gerror.h" #include "gerror.h"
#include <stdbool.h>
struct client; struct client;
class SongFilter; class SongFilter;
struct DatabaseSelection; struct DatabaseSelection;

View File

@@ -32,7 +32,6 @@ extern "C" {
#include <sys/inotify.h> #include <sys/inotify.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#undef G_LOG_DOMAIN #undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "inotify" #define G_LOG_DOMAIN "inotify"

View File

@@ -31,7 +31,6 @@ extern "C" {
#include <assert.h> #include <assert.h>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>

View File

@@ -25,7 +25,6 @@
#include <string> #include <string>
#include <glib.h> #include <glib.h>
#include <stdbool.h>
#include <time.h> #include <time.h>
struct song; struct song;

View File

@@ -21,7 +21,6 @@
#define MPD_PLAYLIST_PRINT_HXX #define MPD_PLAYLIST_PRINT_HXX
#include <glib.h> #include <glib.h>
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
struct client; struct client;

View File

@@ -26,8 +26,6 @@
#include "playlist_error.h" #include "playlist_error.h"
#include <stdbool.h>
struct playlist_provider; struct playlist_provider;
struct playlist; struct playlist;
struct player_control; struct player_control;

View File

@@ -20,8 +20,6 @@
#ifndef MPD_PLAYLIST_SONG_HXX #ifndef MPD_PLAYLIST_SONG_HXX
#define MPD_PLAYLIST_SONG_HXX #define MPD_PLAYLIST_SONG_HXX
#include <stdbool.h>
/** /**
* Verifies the song, returns NULL if it is unsafe. Translate the * Verifies the song, returns NULL if it is unsafe. Translate the
* song to a new song object within the database, if it is a local * song to a new song object within the database, if it is a local

View File

@@ -25,7 +25,6 @@
#include <list> #include <list>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h>
#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10 #define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10
#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20 #define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20

View File

@@ -23,7 +23,6 @@
#include "check.h" #include "check.h"
#include "gcc.h" #include "gcc.h"
#include <stdbool.h>
#include <sys/stat.h> #include <sys/stat.h>
struct directory; struct directory;

View File

@@ -22,8 +22,6 @@
#include "check.h" #include "check.h"
#include <stdbool.h>
extern bool walk_discard; extern bool walk_discard;
extern bool modified; extern bool modified;

View File

@@ -22,8 +22,6 @@
#include "check.h" #include "check.h"
#include <stdbool.h>
void void
update_walk_global_init(void); update_walk_global_init(void);

View File

@@ -26,7 +26,6 @@
#include <cassert> #include <cassert>
#include <string> #include <string>
#include <stdbool.h>
#include <time.h> #include <time.h>
struct directory; struct directory;

View File

@@ -32,7 +32,6 @@ extern "C" {
#include <glib.h> #include <glib.h>
#include <assert.h> #include <assert.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
static bool static bool

View File

@@ -26,7 +26,6 @@
#include <FLAC/metadata.h> #include <FLAC/metadata.h>
#include <assert.h> #include <assert.h>
#include <stdbool.h>
class FLACMetadataChain { class FLACMetadataChain {
FLAC__Metadata_Chain *chain; FLAC__Metadata_Chain *chain;

View File

@@ -22,7 +22,6 @@
#include <glib.h> #include <glib.h>
#include <stdbool.h>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <signal.h> #include <signal.h>