don't include stdbool.h in C++ sources
The "bool" type is built-in.
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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"
|
||||||
|
@@ -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>
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
@@ -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>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user