Commit ec54754e authored by Max Kellermann's avatar Max Kellermann

Compiler.h: move to util/

parent 0ebba73c
......@@ -79,7 +79,6 @@ libmpd_a_SOURCES = \
$(OUTPUT_API_SRC) \
$(MIXER_API_SRC) \
src/check.h \
src/Compiler.h \
src/open.h \
src/protocol/Ack.cxx src/protocol/Ack.hxx \
src/protocol/ArgParser.cxx src/protocol/ArgParser.hxx \
......@@ -505,6 +504,7 @@ endif
# Generic utility library
libutil_a_SOURCES = \
src/Compiler.h \
src/util/Exception.cxx src/util/Exception.hxx \
src/util/RuntimeError.hxx \
src/util/Macros.hxx \
......
......@@ -21,7 +21,7 @@
#define MPD_AUDIO_FORMAT_HXX
#include "pcm/SampleFormat.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
#include <stddef.h>
......
......@@ -25,7 +25,7 @@
#ifndef MPD_IDLE_FLAGS_HXX
#define MPD_IDLE_FLAGS_HXX
#include "Compiler.h"
#include "util/Compiler.h"
/** song database has been updated*/
static constexpr unsigned IDLE_DATABASE = 0x1;
......
......@@ -24,7 +24,7 @@
#include "event/Loop.hxx"
#include "event/Thread.hxx"
#include "event/MaskMonitor.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#ifdef ENABLE_SYSTEMD_DAEMON
#include "lib/systemd/Watchdog.hxx"
......
......@@ -21,7 +21,7 @@
#define MPD_LOCATE_URI_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "fs/AllocatedPath.hxx"
#ifdef _WIN32
......
......@@ -21,7 +21,7 @@
#define MPD_LOG_HXX
#include "LogLevel.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <exception>
......
......@@ -26,7 +26,7 @@
#include <string>
#include "Compiler.h"
#include "util/Compiler.h"
#define PLAYLIST_FILE_SUFFIX ".m3u"
......
......@@ -21,7 +21,7 @@
#define MPD_MIX_RAMP_INFO_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
......
......@@ -22,7 +22,7 @@
#include "MusicChunkPtr.hxx"
#include "thread/Mutex.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#ifndef NDEBUG
#include "AudioFormat.hxx"
......
......@@ -30,7 +30,7 @@
#include "ReplayGainMode.hxx"
#include "SingleMode.hxx"
#include "Chrono.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <memory>
......
......@@ -21,7 +21,7 @@
#define MPD_REPLAY_GAIN_INFO_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "ReplayGainMode.hxx"
struct ReplayGainConfig;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_REPLAY_GAIN_MODE_HXX
#define MPD_REPLAY_GAIN_MODE_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_SINGLE_MODE_HXX
#define MPD_SINGLE_MODE_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -21,7 +21,7 @@
#define MPD_SONG_LOADER_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <cstddef>
......
......@@ -23,7 +23,7 @@
#include "StateFileConfig.hxx"
#include "event/TimerEvent.hxx"
#include "fs/AllocatedPath.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <chrono>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_ANDROID_ENVIRONMENT_HXX
#define MPD_ANDROID_ENVIRONMENT_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <jni.h>
......
......@@ -26,7 +26,7 @@
#include "tag/Mask.hxx"
#include "event/FullyBufferedSocket.hxx"
#include "event/TimerEvent.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/list_hook.hpp>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CLIENT_MESSAGE_HXX
#define MPD_CLIENT_MESSAGE_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "protocol/Ack.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stddef.h>
#include <stdarg.h>
......
......@@ -21,7 +21,7 @@
#define MPD_NEIGHBOR_COMMANDS_HXX
#include "CommandResult.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
struct Instance;
class Client;
......
......@@ -21,7 +21,7 @@
#define MPD_PLAYLIST_COMMANDS_HXX
#include "CommandResult.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
class Client;
class Request;
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "Param.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <vector>
......
......@@ -21,7 +21,7 @@
#define MPD_CONFIG_CHECK_HXX
#include "Option.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
struct ConfigData;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_CONFIG_OPTION_HXX
#define MPD_CONFIG_OPTION_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#if defined(_WIN32) && CLANG_OR_GCC_VERSION(4,7)
/* "INPUT" is declared by winuser.h */
......
......@@ -21,7 +21,7 @@
#define MPD_CONFIG_PARAM_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DB_COUNT_HXX
#define MPD_DB_COUNT_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_GLUE_HXX
#define MPD_DATABASE_GLUE_HXX
#include "Compiler.h"
#include "util/Compiler.h"
struct ConfigBlock;
class EventLoop;
......
......@@ -28,7 +28,7 @@
#include "check.h"
#include "thread/Mutex.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_PLAYLIST_HXX
#define MPD_DATABASE_PLAYLIST_HXX
#include "Compiler.h"
#include "util/Compiler.h"
class Database;
class Storage;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_SONG_HXX
#define MPD_DATABASE_SONG_HXX
#include "Compiler.h"
#include "util/Compiler.h"
struct LightSong;
class Database;
......
......@@ -22,7 +22,7 @@
#include "Visitor.hxx"
#include "tag/Type.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <chrono>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_LIGHT_DIRECTORY_HXX
#define MPD_LIGHT_DIRECTORY_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
......
......@@ -21,7 +21,7 @@
#define MPD_PLAYLIST_INFO_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <chrono>
......
......@@ -21,7 +21,7 @@
#define MPD_PLAYLIST_VECTOR_HXX
#include "db/PlaylistInfo.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <list>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_REGISTRY_HXX
#define MPD_DATABASE_REGISTRY_HXX
#include "Compiler.h"
#include "util/Compiler.h"
struct DatabasePlugin;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DATABASE_SELECTION_HXX
#define MPD_DATABASE_SELECTION_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
......
......@@ -32,7 +32,7 @@
#include "song/UriSongFilter.hxx"
#include "song/BaseSongFilter.hxx"
#include "song/TagSongFilter.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include "config/Block.hxx"
#include "tag/Builder.hxx"
#include "tag/Tag.hxx"
......
......@@ -21,7 +21,7 @@
#define MPD_DIRECTORY_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "db/Visitor.hxx"
#include "db/PlaylistVector.hxx"
#include "Song.hxx"
......
......@@ -25,7 +25,7 @@
#include "fs/AllocatedPath.hxx"
#include "song/LightSong.hxx"
#include "util/Manual.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <cassert>
......
......@@ -24,7 +24,7 @@
#include "Chrono.hxx"
#include "tag/Tag.hxx"
#include "AudioFormat.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <boost/intrusive/list.hpp>
......
......@@ -21,7 +21,7 @@
#define MPD_UPNP_DIRECTORY_HXX
#include "Object.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <vector>
......
......@@ -21,7 +21,7 @@
#define MPD_UPNP_OBJECT_HXX
#include "tag/Tag.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "Remove.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
struct Directory;
struct Song;
......
......@@ -26,7 +26,7 @@
#define MPD_EXCLUDE_H
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "fs/Glob.hxx"
#include "input/Ptr.hxx"
......
......@@ -21,7 +21,7 @@
#define MPD_INOTIFY_SOURCE_HXX
#include "event/SocketMonitor.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
class FileDescriptor;
......
......@@ -21,7 +21,7 @@
#define MPD_INOTIFY_UPDATE_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
class EventLoop;
class Storage;
......
......@@ -21,7 +21,7 @@
#define MPD_UPDATE_QUEUE_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <list>
......
......@@ -23,7 +23,7 @@
#include "check.h"
#include "event/DeferEvent.hxx"
#include "thread/Mutex.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <forward_list>
#include <string>
......
......@@ -25,7 +25,7 @@
#include "Queue.hxx"
#include "event/DeferEvent.hxx"
#include "thread/Thread.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
class SimpleDatabase;
class DatabaseListener;
......
......@@ -21,7 +21,7 @@
#define MPD_UPDATE_IO_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
struct Directory;
struct StorageFileInfo;
......
......@@ -23,7 +23,7 @@
#include "check.h"
#include "Config.hxx"
#include "Editor.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <atomic>
......
......@@ -24,7 +24,7 @@
#include "DecoderCommand.hxx"
#include "Chrono.hxx"
#include "input/Ptr.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DECODER_BUFFER_HXX
#define MPD_DECODER_BUFFER_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include "util/DynamicFifoBuffer.hxx"
#include "util/ConstBuffer.hxx"
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DECODER_LIST_HXX
#define MPD_DECODER_LIST_HXX
#include "Compiler.h"
#include "util/Compiler.h"
struct ConfigData;
struct DecoderPlugin;
......
......@@ -20,7 +20,7 @@
#ifndef MPD_DECODER_PLUGIN_HXX
#define MPD_DECODER_PLUGIN_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <forward_list>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "fs/io/Reader.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
class DecoderClient;
class InputStream;
......
......@@ -22,7 +22,7 @@
#include "system/ByteOrder.hxx"
#include "input/Offset.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -23,7 +23,7 @@
#include "../DecoderAPI.hxx"
#include "input/InputStream.hxx"
#include "Log.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <exception>
......
......@@ -21,7 +21,7 @@
#define MPD_ENCODER_INTERFACE_HXX
#include "EncoderPlugin.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <stddef.h>
......
......@@ -21,7 +21,7 @@
#include "NullEncoderPlugin.hxx"
#include "../EncoderAPI.hxx"
#include "util/DynamicFifoBuffer.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
class NullEncoder final : public Encoder {
DynamicFifoBuffer<uint8_t> buffer;
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "BufferedSocket.hxx"
#include "net/SocketError.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <algorithm>
......
......@@ -23,7 +23,7 @@
#include "DeferEvent.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <exception>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "FullyBufferedSocket.hxx"
#include "net/SocketError.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <string.h>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "thread/Id.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include "PollGroup.hxx"
#include "thread/Mutex.hxx"
......
......@@ -24,7 +24,7 @@
#include "IdleMonitor.hxx"
#include "TimerEvent.hxx"
#include "SocketMonitor.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <forward_list>
#include <iterator>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "system/EPollFD.hxx"
#include <array>
......
......@@ -26,7 +26,7 @@
#ifndef MPD_FILTER_REGISTRY_HXX
#define MPD_FILTER_REGISTRY_HXX
#include "Compiler.h"
#include "util/Compiler.h"
struct FilterPlugin;
......
......@@ -30,7 +30,7 @@
#include "filter/Prepared.hxx"
#include "filter/FilterRegistry.hxx"
#include "AudioFormat.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include "util/ConstBuffer.hxx"
class NullFilter final : public Filter {
......
......@@ -21,7 +21,7 @@
#include "AllocatedPath.hxx"
#include "Domain.hxx"
#include "Charset.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <exception>
......
......@@ -21,7 +21,7 @@
#define MPD_FS_ALLOCATED_PATH_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "Traits.hxx"
#include "Path.hxx"
......
......@@ -21,7 +21,7 @@
#define MPD_FS_CHARSET_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "Traits.hxx"
#if (defined(HAVE_ICU) || defined(HAVE_ICONV)) && !defined(_WIN32)
......
......@@ -33,7 +33,7 @@
#endif
#ifdef HAVE_CLASS_GLOB
#include "Compiler.h"
#include "util/Compiler.h"
/**
* A pattern that matches file names. It may contain shell wildcards
......
......@@ -21,7 +21,7 @@
#define MPD_FS_PATH_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "Traits.hxx"
#include <string>
......
......@@ -21,7 +21,7 @@
#define MPD_FS_TRAITS_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "util/StringPointer.hxx"
#include "util/StringAPI.hxx"
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "PeekReader.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
class GunzipReader;
......
......@@ -31,7 +31,7 @@
#define BUFFERED_OUTPUT_STREAM_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "util/DynamicFifoBuffer.hxx"
#include <stddef.h>
......
......@@ -21,7 +21,7 @@
#define MPD_BUFFERED_READER_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include "util/DynamicFifoBuffer.hxx"
#include <stddef.h>
......
......@@ -33,7 +33,7 @@
#include "check.h"
#include "OutputStream.hxx"
#include "fs/AllocatedPath.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#ifndef _WIN32
#include "system/FileDescriptor.hxx"
......
......@@ -23,7 +23,7 @@
#include "check.h"
#include "Reader.hxx"
#include "fs/AllocatedPath.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#ifndef _WIN32
#include "system/FileDescriptor.hxx"
......
......@@ -23,7 +23,7 @@
#include "check.h"
#include "Reader.hxx"
#include "util/StaticFifoBuffer.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <zlib.h>
......
......@@ -32,7 +32,7 @@
#include "check.h"
#include "OutputStream.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <zlib.h>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "Reader.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -21,7 +21,7 @@
#define MPD_READER_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stddef.h>
......
......@@ -32,7 +32,7 @@
#include "check.h"
#include "OutputStream.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdio.h>
......
......@@ -21,7 +21,7 @@
#define MPD_TEXT_FILE_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
class Path;
class FileReader;
......
......@@ -21,7 +21,7 @@
#define INPUT_ERROR_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <exception>
......
......@@ -21,7 +21,7 @@
#define MPD_ICY_INPUT_STREAM_HXX
#include "ProxyInputStream.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <memory>
......
......@@ -24,7 +24,7 @@
#include "Offset.hxx"
#include "Ptr.hxx"
#include "thread/Mutex.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <string>
#include <memory>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "fs/io/Reader.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
struct Decoder;
class InputStream;
......
......@@ -30,7 +30,7 @@
#ifndef JAVA_GLOBAL_HXX
#define JAVA_GLOBAL_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <jni.h>
......
......@@ -22,7 +22,7 @@
#include "check.h"
#include "pcm/SampleFormat.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <alsa/asoundlib.h>
......
......@@ -20,7 +20,7 @@
#ifndef MPD_ALSA_VERSION_HXX
#define MPD_ALSA_VERSION_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <stdint.h>
......
......@@ -30,7 +30,7 @@
#ifndef CURL_VERSION_HXX
#define CURL_VERSION_HXX
#include "Compiler.h"
#include "util/Compiler.h"
gcc_const
bool
......
......@@ -33,7 +33,7 @@
#ifndef ODBUS_ERROR_HXX
#define ODBUS_ERROR_HXX
#include "Compiler.h"
#include "util/Compiler.h"
#include <dbus/dbus.h>
......
......@@ -22,7 +22,7 @@
#include "ReadIter.hxx"
#include "ObjectManager.hxx"
#include "util/StringAPI.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <functional>
......
......@@ -36,7 +36,7 @@
#include "Connection.hxx"
#include "event/SocketMonitor.hxx"
#include "event/DeferEvent.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <dbus/dbus.h>
......
......@@ -21,7 +21,7 @@
#define MPD_EXPAT_HXX
#include "check.h"
#include "Compiler.h"
#include "util/Compiler.h"
#include <expat.h>
......
......@@ -21,7 +21,7 @@
#define MPD_FFMPEG_TIME_HXX
#include "Chrono.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
extern "C" {
#include <libavutil/avutil.h>
......
......@@ -31,7 +31,7 @@
#define GCRYPT_HASH_HXX
#include "util/ConstBuffer.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <gcrypt.h>
......
......@@ -31,7 +31,7 @@
#define GCRYPT_MD5_HXX
#include "util/StringBuffer.hxx"
#include "Compiler.h"
#include "util/Compiler.h"
#include <array>
......
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