Commit be2951b4 authored by Max Kellermann's avatar Max Kellermann

gcc.h: rename to Compiler.h

parent 1dd1a705
......@@ -55,7 +55,6 @@ mpd_headers = \
src/command.h \
src/gerror.h \
src/glib_compat.h \
src/gcc.h \
src/TextInputStream.hxx \
src/AudioCompress/config.h \
src/AudioCompress/compress.h \
......@@ -70,6 +69,7 @@ src_mpd_SOURCES = \
$(DECODER_SRC) \
$(OUTPUT_API_SRC) \
$(MIXER_API_SRC) \
src/Compiler.h \
src/thread/Id.hxx \
src/thread/Mutex.hxx \
src/thread/PosixMutex.hxx \
......
......@@ -20,7 +20,7 @@
#ifndef MPD_AUDIO_FORMAT_HXX
#define MPD_AUDIO_FORMAT_HXX
#include "gcc.h"
#include "Compiler.h"
#include <stdint.h>
#include <assert.h>
......
......@@ -27,7 +27,7 @@
#include "AudioFormat.hxx"
#include "CheckAudioFormat.hxx"
#include "util/Error.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
#include <string.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CLIENT_H
#define MPD_CLIENT_H
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
#include <stdarg.h>
......
......@@ -18,7 +18,7 @@
*/
#include "ClientMessage.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <glib.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CLIENT_MESSAGE_H
#define MPD_CLIENT_MESSAGE_H
#include "gcc.h"
#include "Compiler.h"
#include <string>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CLIENT_SUBSCRIBE_HXX
#define MPD_CLIENT_SUBSCRIBE_HXX
#include "gcc.h"
#include "Compiler.h"
class Client;
class ClientMessage;
......
......@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_GCC_H
#define MPD_GCC_H
#ifndef COMPILER_H
#define COMPILER_H
#define GCC_CHECK_VERSION(major, minor) \
(defined(__GNUC__) && \
......
......@@ -21,7 +21,7 @@
#define MPD_CONFIG_DATA_HXX
#include "ConfigOption.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <string>
#include <array>
......
......@@ -21,7 +21,7 @@
#define MPD_CONFIG_GLOBAL_HXX
#include "ConfigOption.hxx"
#include "gcc.h"
#include "Compiler.h"
class Error;
class Path;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CONFIG_OPTION_HXX
#define MPD_CONFIG_OPTION_HXX
#include "gcc.h"
#include "Compiler.h"
enum ConfigOption {
CONF_MUSIC_DIR,
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_GLUE_HXX
#define MPD_DATABASE_GLUE_HXX
#include "gcc.h"
#include "Compiler.h"
struct config_param;
class Database;
......
......@@ -22,7 +22,7 @@
#include "DatabaseVisitor.hxx"
#include "tag/TagType.h"
#include "gcc.h"
#include "Compiler.h"
class Error;
class Database;
......
......@@ -19,7 +19,7 @@
#include "config.h"
#include "DatabaseLock.hxx"
#include "gcc.h"
#include "Compiler.h"
Mutex db_mutex;
......
......@@ -28,7 +28,7 @@
#include "check.h"
#include "thread/Mutex.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_PLAYLIST_HXX
#define MPD_DATABASE_PLAYLIST_HXX
#include "gcc.h"
#include "Compiler.h"
class SongFilter;
class Error;
......
......@@ -28,7 +28,7 @@
#include "DatabaseVisitor.hxx"
#include "tag/TagType.h"
#include "gcc.h"
#include "Compiler.h"
struct config_param;
struct DatabaseSelection;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DB_PRINT_H
#define MPD_DB_PRINT_H
#include "gcc.h"
#include "Compiler.h"
class SongFilter;
struct DatabaseSelection;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_REGISTRY_HXX
#define MPD_DATABASE_REGISTRY_HXX
#include "gcc.h"
#include "Compiler.h"
struct DatabasePlugin;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_SELECTION_HXX
#define MPD_DATABASE_SELECTION_HXX
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
#include <stddef.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_SIMPLE_HXX
#define MPD_DATABASE_SIMPLE_HXX
#include "gcc.h"
#include "Compiler.h"
#include <sys/time.h>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "util/list.h"
#include "gcc.h"
#include "Compiler.h"
#include "DatabaseVisitor.hxx"
#include "PlaylistVector.hxx"
......
......@@ -25,7 +25,7 @@
#ifndef MPD_EXCLUDE_H
#define MPD_EXCLUDE_H
#include "gcc.h"
#include "Compiler.h"
#include <forward_list>
......
......@@ -21,7 +21,7 @@
#include "GlobalEvents.hxx"
#include "util/Manual.hxx"
#include "event/DeferredMonitor.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <atomic>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_IO_THREAD_HXX
#define MPD_IO_THREAD_HXX
#include "gcc.h"
#include "Compiler.h"
class EventLoop;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_ID_TABLE_HXX
#define MPD_ID_TABLE_HXX
#include "gcc.h"
#include "Compiler.h"
#include <algorithm>
......
......@@ -21,7 +21,7 @@
#define MPD_INOTIFY_QUEUE_HXX
#include "event/TimeoutMonitor.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <list>
#include <string>
......
......@@ -21,7 +21,7 @@
#define MPD_INOTIFY_SOURCE_HXX
#include "event/SocketMonitor.hxx"
#include "gcc.h"
#include "Compiler.h"
class Error;
......
......@@ -23,7 +23,7 @@
#include "check.h"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <string>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_LOG_HXX
#define MPD_LOG_HXX
#include "gcc.h"
#include "Compiler.h"
#ifdef WIN32
#include <windows.h>
......
......@@ -26,7 +26,7 @@
#include <string>
#include "gcc.h"
#include "Compiler.h"
#define PLAYLIST_FILE_SUFFIX ".m3u"
......
......@@ -21,7 +21,7 @@
#define MPD_PIPE_H
#include "thread/Mutex.hxx"
#include "gcc.h"
#include "Compiler.h"
#ifndef NDEBUG
#include "AudioFormat.hxx"
......
......@@ -27,7 +27,7 @@
#define OUTPUT_ALL_H
#include "ReplayGainInfo.hxx"
#include "gcc.h"
#include "Compiler.h"
struct AudioFormat;
class MusicBuffer;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_OUTPUT_PLUGIN_HXX
#define MPD_OUTPUT_PLUGIN_HXX
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
......
......@@ -33,7 +33,7 @@
#include "system/FatalError.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <glib.h>
......
......@@ -21,7 +21,7 @@
#define MPD_PLAYLIST_INFO_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#include <string>
......
......@@ -21,7 +21,7 @@
#define MPD_PLAYLIST_VECTOR_HXX
#include "PlaylistInfo.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <list>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_QUEUE_HXX
#define MPD_QUEUE_HXX
#include "gcc.h"
#include "Compiler.h"
#include "IdTable.hxx"
#include "util/LazyRandomEngine.hxx"
......
......@@ -21,7 +21,7 @@
#define MPD_SONG_HXX
#include "util/list.h"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
#include <sys/time.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_SONG_FILTER_HXX
#define MPD_SONG_FILTER_HXX
#include "gcc.h"
#include "Compiler.h"
#include <list>
......
......@@ -22,7 +22,7 @@
#include "event/TimeoutMonitor.hxx"
#include "fs/Path.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <string>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_TEXT_FILE_HXX
#define MPD_TEXT_FILE_HXX
#include "gcc.h"
#include "Compiler.h"
#include <stdio.h>
......
......@@ -21,7 +21,7 @@
#define MPD_UPDATE_ARCHIVE_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#include <sys/stat.h>
......
......@@ -22,7 +22,7 @@
#ifdef WIN32
#include "gcc.h"
#include "Compiler.h"
#include "GlobalEvents.hxx"
#include "system/FatalError.hxx"
......
......@@ -24,7 +24,7 @@
#include "event/SocketMonitor.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <glib.h>
......
......@@ -26,7 +26,7 @@
#include "Listen.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "gcc.h"
#include "Compiler.h"
static constexpr Domain zeroconf_domain("zeroconf");
......
......@@ -21,7 +21,7 @@
#define MPD_CUE_PARSER_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
struct Song;
struct Tag;
......
......@@ -25,7 +25,7 @@
#include "PlaylistVector.hxx"
#include "Directory.hxx"
#include "Song.hxx"
#include "gcc.h"
#include "Compiler.h"
#include "ConfigData.hxx"
#include "tag/TagBuilder.hxx"
#include "util/Error.hxx"
......
......@@ -22,7 +22,7 @@
#include "DatabasePlugin.hxx"
#include "fs/Path.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <cassert>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "FlacIOHandle.hxx"
#include "util/Error.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <errno.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_FLAC_IO_HANDLE_HXX
#define MPD_FLAC_IO_HANDLE_HXX
#include "gcc.h"
#include "Compiler.h"
#include "InputStream.hxx"
#include <FLAC/callback.h>
......
......@@ -24,7 +24,7 @@
#include "InputStream.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "gcc.h"
#include "Compiler.h"
FLAC__StreamDecoderReadStatus
FlacInput::Read(FLAC__byte buffer[], size_t *bytes)
......
......@@ -20,7 +20,7 @@
#ifndef MPD_FLAC_METADATA_H
#define MPD_FLAC_METADATA_H
#include "gcc.h"
#include "Compiler.h"
#include "FlacIOHandle.hxx"
#include <FLAC/metadata.h>
......
......@@ -24,7 +24,7 @@
extern "C" {
#include "util/growing_fifo.h"
}
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
#include <string.h>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "SocketMonitor.hxx"
#include "gcc.h"
#include "Compiler.h"
struct fifo_buffer;
class Error;
......
......@@ -23,7 +23,7 @@
#include "DeferredMonitor.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
......
......@@ -21,7 +21,7 @@
#define MPD_SOCKET_DEFERRED_MONITOR_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#ifdef USE_EPOLL
#include "SocketMonitor.hxx"
......
......@@ -23,7 +23,7 @@
#include "check.h"
#include "BufferedSocket.hxx"
#include "util/PeakBuffer.hxx"
#include "gcc.h"
#include "Compiler.h"
/**
* A #BufferedSocket specialization that adds an output buffer.
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "thread/Id.hxx"
#include "gcc.h"
#include "Compiler.h"
#ifdef USE_EPOLL
#include "system/EPollFD.hxx"
......
......@@ -21,7 +21,7 @@
#include "MultiSocketMonitor.hxx"
#include "Loop.hxx"
#include "system/fd_util.h"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
......
......@@ -21,7 +21,7 @@
#define MPD_MULTI_SOCKET_MONITOR_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#ifdef USE_EPOLL
#include "IdleMonitor.hxx"
......
......@@ -21,7 +21,7 @@
#include "SocketMonitor.hxx"
#include "Loop.hxx"
#include "system/fd_util.h"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
......
......@@ -29,7 +29,7 @@
#include "FilterInternal.hxx"
#include "FilterRegistry.hxx"
#include "AudioFormat.hxx"
#include "gcc.h"
#include "Compiler.h"
class NullFilter final : public Filter {
public:
......
......@@ -24,7 +24,7 @@
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <glib.h>
......
......@@ -21,7 +21,7 @@
#define MPD_FS_PATH_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#ifdef WIN32
#include <glib.h>
......
......@@ -21,7 +21,7 @@
#define MPD_OUTPUT_HTTPD_CLIENT_HXX
#include "event/BufferedSocket.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <list>
......
......@@ -24,7 +24,7 @@
#ifdef ENABLE_WINMM_OUTPUT
#include "gcc.h"
#include "Compiler.h"
#include <windows.h>
#include <mmsystem.h>
......
......@@ -21,7 +21,7 @@
#define PCM_BUFFER_HXX
#include "util/ReusableArray.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <stdint.h>
......
......@@ -21,7 +21,7 @@
#define MPD_PCM_MIX_HXX
#include "AudioFormat.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_PCM_UTILS_H
#define MPD_PCM_UTILS_H
#include "gcc.h"
#include "Compiler.h"
#include <limits>
......
......@@ -21,7 +21,7 @@
#define MPD_PROTOCOL_RESULT_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#include "Ack.hxx"
#include <stdarg.h>
......
......@@ -22,7 +22,7 @@
#include "EventFD.hxx"
#include "system/fd_util.h"
#include "system/FatalError.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
#include <unistd.h>
......
......@@ -21,7 +21,7 @@
#include "EventPipe.hxx"
#include "system/fd_util.h"
#include "system/FatalError.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <assert.h>
#include <unistd.h>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "gerror.h"
#include "gcc.h"
#include "Compiler.h"
class Error;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_RESOLVER_HXX
#define MPD_RESOLVER_HXX
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_SOCKET_ERROR_HXX
#define MPD_SOCKET_ERROR_HXX
#include "gcc.h"
#include "Compiler.h"
#include "util/Error.hxx"
#ifdef WIN32
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CLOCK_H
#define MPD_CLOCK_H
#include "gcc.h"
#include "Compiler.h"
#include <stdint.h>
......
......@@ -22,7 +22,7 @@
#include "TagType.h"
#include "TagItem.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <algorithm>
......
......@@ -21,7 +21,7 @@
#define MPD_TAG_BUILDER_HXX
#include "TagType.h"
#include "gcc.h"
#include "Compiler.h"
#include <vector>
......
......@@ -21,7 +21,7 @@
#define MPD_TAG_ID3_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
struct tag_handler;
struct Tag;
......
......@@ -21,7 +21,7 @@
#define MPD_TAG_ITEM_HXX
#include "TagType.h"
#include "gcc.h"
#include "Compiler.h"
/**
* One tag value. It is a mapping of #tag_type to am arbitrary string
......
......@@ -21,7 +21,7 @@
#define MPD_TAG_STRING_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
......
......@@ -21,7 +21,7 @@
#define MPD_TAG_TABLE_HXX
#include "TagType.h"
#include "gcc.h"
#include "Compiler.h"
struct tag_table {
const char *name;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_THREAD_ID_HXX
#define MPD_THREAD_ID_HXX
#include "gcc.h"
#include "Compiler.h"
#ifdef WIN32
#include <windows.h>
......
......@@ -21,7 +21,7 @@
#define MPD_ERROR_HXX
#include "check.h"
#include "gcc.h"
#include "Compiler.h"
#include <string>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_HUGE_ALLOCATOR_HXX
#define MPD_HUGE_ALLOCATOR_HXX
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
......
......@@ -30,7 +30,7 @@
#ifndef MPD_MANUAL_HXX
#define MPD_MANUAL_HXX
#include "gcc.h"
#include "Compiler.h"
#include <new>
#include <utility>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_PEAK_BUFFER_HXX
#define MPD_PEAK_BUFFER_HXX
#include "gcc.h"
#include "Compiler.h"
#include <stddef.h>
......
......@@ -32,7 +32,7 @@
#include <stddef.h>
#include "gcc.h"
#include "Compiler.h"
/**
* Manager for a temporary array which grows as needed. This attempts
......
......@@ -21,7 +21,7 @@
#define MPD_SLICE_BUFFER_HXX
#include "HugeAllocator.hxx"
#include "gcc.h"
#include "Compiler.h"
#include <utility>
#include <new>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_STRING_UTIL_HXX
#define MPD_STRING_UTIL_HXX
#include "gcc.h"
#include "Compiler.h"
/**
* Returns a pointer to the first non-whitespace character in the
......
......@@ -20,7 +20,7 @@
#ifndef MPD_URI_UTIL_HXX
#define MPD_URI_UTIL_HXX
#include "gcc.h"
#include "Compiler.h"
/**
* Checks whether the specified URI has a scheme in the form
......
......@@ -20,7 +20,7 @@
#ifndef MPD_BIT_REVERSE_H
#define MPD_BIT_REVERSE_H
#include "gcc.h"
#include "Compiler.h"
#include <stdint.h>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "Song.hxx"
#include "directory.h"
#include "gcc.h"
#include "Compiler.h"
#include <stdlib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment