diff --git a/Makefile.am b/Makefile.am index 705d469f..db671101 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,14 +31,7 @@ XFAIL_TESTS = check_PROGRAMS = AM_CPPFLAGS = -DPKGLIBDIR="\"$(pkglibdir)\"" -# That can be trimmed down later when adapting the sources to -# use relative paths for includes. -# TODO: Actually do more relative includes. -AM_CPPFLAGS += \ - $(LTDLINCL) \ - -I$(top_srcdir)/src \ - -I$(top_srcdir)/src/compat \ - -I$(top_srcdir)/src/common +AM_CPPFLAGS += $(LTDLINCL) # Automake cannot handle dependencies behind an autoconf expansion. # So we need elaborate ifelsery here to make it see the libtool diff --git a/NEWS b/NEWS index 70784969..2c0cf202 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ ------ - build: -- Reorganize shared headers, API headers into src/include. +-- Use relative include paths, avoiding internal directories in + CPPFLAGS except for config.h. -- Group C99 feature checks and make several standard headers mandatory. -- Get rid of SIZE_P, OFF_P and friends. diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt index 09e44922..f86d7f47 100644 --- a/ports/cmake/src/CMakeLists.txt +++ b/ports/cmake/src/CMakeLists.txt @@ -341,8 +341,6 @@ option(USE_NEW_HUFFTABLE "use new huffman decoding scheme by Taihei (faster on m include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/" "${CMAKE_CURRENT_BINARY_DIR}" - "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/compat" - "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/common" "${CMAKE_CURRENT_SOURCE_DIR}/../../../src/include") add_compile_definitions( diff --git a/scripts/fixinc.pl b/scripts/fixinc.pl new file mode 100644 index 00000000..819588c9 --- /dev/null +++ b/scripts/fixinc.pl @@ -0,0 +1,42 @@ +#!/usr/bin/perl + +use File::Basename qw(dirname); +use File::Spec::Functions qw(abs2rel); + +my @incdirs = ('src/common', 'src/compat', 'src'); + +sub header +{ + my ($from, $inc) = @_; + for(dirname($from), @incdirs) + { + my $cand = "$_/$inc"; + return $cand if -e $cand; + } + return undef; +} + +for my $f (@ARGV) +{ + open(my $ih, '<', $f) or die "meh: $!\n"; + open(my $oh, '>', "$f.tmp") or die "moh: $!\n"; + while(my $line = <$ih>) + { + if($line =~ m,^(\s*\#\s*include\s+)"([^/]+)\"(.*)$,) + { + my ($pre, $inc, $post) = ($1, $2, $3); + my $h = header($f, $inc); + if($inc ne "config.h" and defined $h) + { + if(dirname($h) ne dirname($f)) + { + my $rel = abs2rel($h, dirname($f)); + print "$f: including $inc ($rel)\n"; + $line = $pre.'"'.$rel.'"'.$post."\n"; + } + } + } + print $oh "$line"; + } + rename("$f.tmp", $f); +} diff --git a/src/audio.c b/src/audio.c index bb4532fc..055efeb3 100644 --- a/src/audio.c +++ b/src/audio.c @@ -40,7 +40,7 @@ #include #endif -#include "debug.h" +#include "common/debug.h" static syn123_handle *sh = NULL; static struct mpg123_fmt outfmt = { .encoding=0, .rate=0, .channels=0 }; diff --git a/src/audio.h b/src/audio.h index f2610137..b37c60e3 100644 --- a/src/audio.h +++ b/src/audio.h @@ -16,7 +16,7 @@ #ifndef _MPG123_AUDIO_H_ #define _MPG123_AUDIO_H_ -#include "compat.h" +#include "compat/compat.h" #include "mpg123.h" #include "out123.h" diff --git a/src/common.c b/src/common.c index cf98cbbb..eea1c336 100644 --- a/src/common.c +++ b/src/common.c @@ -18,7 +18,7 @@ #include "terms.h" #include "metaprint.h" -#include "debug.h" +#include "common/debug.h" enum player_state playstate = STATE_PLAYING; const char playsym[STATE_COUNT] = { '>', '_', '=', '?' }; diff --git a/src/compat/compat.c b/src/compat/compat.c index 0cf64983..b66fe7ea 100644 --- a/src/compat/compat.c +++ b/src/compat/compat.c @@ -39,7 +39,7 @@ #include #endif -#include "debug.h" +#include "../common/debug.h" #ifndef WINDOWS_UWP diff --git a/src/compat/compat.h b/src/compat/compat.h index 59aaf64e..dee811f7 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -279,7 +279,7 @@ size_t INT123_unintr_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *st #define normal mpg123_normal #endif -#include "true.h" +#include "../common/true.h" #if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H) void (*INT123_catchsignal(int signum, void(*handler)(int)))(int); diff --git a/src/compat/compat_dl.c b/src/compat/compat_dl.c index e704d2ce..e8433165 100644 --- a/src/compat/compat_dl.c +++ b/src/compat/compat_dl.c @@ -47,7 +47,7 @@ # endif #endif -#include "debug.h" +#include "../common/debug.h" #include "wpathconv.h" diff --git a/src/compat/compat_str.c b/src/compat/compat_str.c index 27729f2d..7e9797a1 100644 --- a/src/compat/compat_str.c +++ b/src/compat/compat_str.c @@ -26,7 +26,7 @@ #include #endif -#include "debug.h" +#include "../common/debug.h" /* A safe realloc also for very old systems where realloc(NULL, size) returns NULL. */ void *INT123_safe_realloc(void *ptr, size_t size) diff --git a/src/control_generic.c b/src/control_generic.c index 8a811c43..2e3f6376 100644 --- a/src/control_generic.c +++ b/src/control_generic.c @@ -21,7 +21,7 @@ #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif -#include "compat.h" +#include "compat/compat.h" #include "mpg123app.h" #include "out123.h" @@ -60,7 +60,7 @@ static int mode = MODE_STOPPED; static int init = 0; static int sendstat_disabled = FALSE; -#include "debug.h" +#include "common/debug.h" void generic_sendmsg (const char *fmt, ...) { diff --git a/src/equalizer.c b/src/equalizer.c index 127d2324..ee54d9bf 100644 --- a/src/equalizer.c +++ b/src/equalizer.c @@ -7,7 +7,7 @@ */ #include "mpg123app.h" -#include "debug.h" +#include "common/debug.h" /* Load the settings from the path in the global variable equalfile. If there is no file, restore equalizer defaults. diff --git a/src/filters.c b/src/filters.c index 7174da80..d65b9df9 100644 --- a/src/filters.c +++ b/src/filters.c @@ -9,7 +9,7 @@ #include "filters.h" #include -#include "debug.h" +#include "common/debug.h" // Validate syntax of filter specification, returning the number // of configured filters. diff --git a/src/filters.h b/src/filters.h index 3345718f..5e963456 100644 --- a/src/filters.h +++ b/src/filters.h @@ -19,7 +19,7 @@ #ifndef MPG123_FILTERS_H #define MPG123_FILTERS_H -#include "compat.h" +#include "compat/compat.h" struct filter { diff --git a/src/getlopt.c b/src/getlopt.c index c1b077de..572feaf0 100644 --- a/src/getlopt.c +++ b/src/getlopt.c @@ -8,9 +8,9 @@ */ #include "config.h" -#include "compat.h" +#include "compat/compat.h" #include "getlopt.h" -#include "debug.h" +#include "common/debug.h" int loptind = 1; /* index in argv[] */ int loptchr = 0; /* index in argv[loptind] */ diff --git a/src/httpget.c b/src/httpget.c index d3b4132f..35bd912a 100644 --- a/src/httpget.c +++ b/src/httpget.c @@ -34,12 +34,12 @@ #include "resolver.h" #include -#include "true.h" +#include "common/true.h" #endif #include -#include "debug.h" +#include "common/debug.h" void httpdata_init(struct httpdata *e) { diff --git a/src/libmpg123/calctables.c b/src/libmpg123/calctables.c index 9d61d282..371c3708 100644 --- a/src/libmpg123/calctables.c +++ b/src/libmpg123/calctables.c @@ -12,7 +12,7 @@ #define CALCTABLES #include "mpg123lib_intern.h" -#include "debug.h" +#include "../common/debug.h" #define ASIZE(a) (sizeof(a)/sizeof(*a)) diff --git a/src/libmpg123/dither_impl.h b/src/libmpg123/dither_impl.h index 87eaad6a..4d93baf9 100644 --- a/src/libmpg123/dither_impl.h +++ b/src/libmpg123/dither_impl.h @@ -7,7 +7,7 @@ */ #include "config.h" -#include "compat.h" +#include "../compat/compat.h" #include "dither.h" static const uint32_t init_seed = 2463534242UL; diff --git a/src/libmpg123/format.c b/src/libmpg123/format.c index 60936aa0..5350ed4e 100644 --- a/src/libmpg123/format.c +++ b/src/libmpg123/format.c @@ -26,8 +26,8 @@ */ #include "mpg123lib_intern.h" -#include "sample.h" -#include "debug.h" +#include "../common/sample.h" +#include "../common/debug.h" /* static int chans[NUM_CHANNELS] = { 1 , 2 }; */ static const long my_rates[MPG123_RATES] = /* only the standard rates */ @@ -686,7 +686,7 @@ static void conv_s16_to_s32(struct outbuffer *buf) #endif #endif -#include "swap_bytes_impl.h" +#include "../common/swap_bytes_impl.h" void swap_endian(struct outbuffer *buf, int block) { diff --git a/src/libmpg123/frame.c b/src/libmpg123/frame.c index 7e4794fa..45636c1e 100644 --- a/src/libmpg123/frame.c +++ b/src/libmpg123/frame.c @@ -9,7 +9,7 @@ #define WANT_GETCPUFLAGS #include "mpg123lib_intern.h" #include "getcpuflags.h" -#include "debug.h" +#include "../common/debug.h" static void frame_fixed_reset(mpg123_handle *fr); diff --git a/src/libmpg123/gapless.h b/src/libmpg123/gapless.h index d7b71b1f..1896cd86 100644 --- a/src/libmpg123/gapless.h +++ b/src/libmpg123/gapless.h @@ -7,7 +7,7 @@ This is no stand-alone header, precisely to be able to fool it into using fake handle types for testing the math. */ -#include "debug.h" +#include "../common/debug.h" #ifdef GAPLESS /* From internal sample number to external. */ diff --git a/src/libmpg123/getbits.h b/src/libmpg123/getbits.h index 6d0d548e..3572027b 100644 --- a/src/libmpg123/getbits.h +++ b/src/libmpg123/getbits.h @@ -13,7 +13,7 @@ #define _MPG123_GETBITS_H_ #include "mpg123lib_intern.h" -#include "debug.h" +#include "../common/debug.h" #define backbits(fr,nob) ((void)( \ fr->bits_avail += nob, \ diff --git a/src/libmpg123/icy.h b/src/libmpg123/icy.h index 104c7ff3..c2edb11e 100644 --- a/src/libmpg123/icy.h +++ b/src/libmpg123/icy.h @@ -10,7 +10,7 @@ #ifndef NO_ICY -#include "compat.h" +#include "../compat/compat.h" #include "mpg123.h" struct icy_meta diff --git a/src/libmpg123/icy2utf8.c b/src/libmpg123/icy2utf8.c index cfda64ec..2ca190de 100644 --- a/src/libmpg123/icy2utf8.c +++ b/src/libmpg123/icy2utf8.c @@ -28,7 +28,7 @@ #include "config.h" /* Includes string and stdlib headers... */ -#include "compat.h" +#include "../compat/compat.h" /* ThOr: too lazy for this type check; also we use char/short all around anyway. Of cource, it would be the proper way to use _these_ kind of types all around. */ diff --git a/src/libmpg123/id3.c b/src/libmpg123/id3.c index 104da6a3..180f489f 100644 --- a/src/libmpg123/id3.c +++ b/src/libmpg123/id3.c @@ -85,7 +85,7 @@ #include "mpg123lib_intern.h" #include "id3.h" -#include "debug.h" +#include "../common/debug.h" #ifndef NO_ID3V2 /* Only the main parsing routine will always be there. */ diff --git a/src/libmpg123/index.c b/src/libmpg123/index.c index cb868868..e13cbd14 100644 --- a/src/libmpg123/index.c +++ b/src/libmpg123/index.c @@ -8,7 +8,7 @@ */ #include "index.h" -#include "debug.h" +#include "../common/debug.h" /* The next expected frame offset, one step ahead. */ static int64_t fi_next(struct frame_index *fi) diff --git a/src/libmpg123/index.h b/src/libmpg123/index.h index b1872597..af12211b 100644 --- a/src/libmpg123/index.h +++ b/src/libmpg123/index.h @@ -21,7 +21,7 @@ */ #include "config.h" -#include "compat.h" +#include "../compat/compat.h" struct frame_index { diff --git a/src/libmpg123/layer1.c b/src/libmpg123/layer1.c index 83e0ef4d..6126a6e2 100644 --- a/src/libmpg123/layer1.c +++ b/src/libmpg123/layer1.c @@ -10,7 +10,7 @@ #include "mpg123lib_intern.h" #include "getbits.h" -#include "debug.h" +#include "../common/debug.h" /* Allocation value is not allowed to be 15. Initially, libmad showed me the diff --git a/src/libmpg123/layer3.c b/src/libmpg123/layer3.c index a9a07021..0ddaf5a5 100644 --- a/src/libmpg123/layer3.c +++ b/src/libmpg123/layer3.c @@ -21,7 +21,7 @@ #include "huffman.h" #endif #include "getbits.h" -#include "debug.h" +#include "../common/debug.h" diff --git a/src/libmpg123/lfs_wrap.c b/src/libmpg123/lfs_wrap.c index ba284120..99714222 100644 --- a/src/libmpg123/lfs_wrap.c +++ b/src/libmpg123/lfs_wrap.c @@ -32,7 +32,7 @@ #endif // For correct MPG123_EXPORT. -#include "abi_align.h" +#include "../common/abi_align.h" // Need the full header with non-portable API, for the bare mpg123_open*() // declarations. But no renaming shenanigans. @@ -40,8 +40,8 @@ #include "mpg123.h" #include "lfs_wrap.h" -#include "abi_align.h" -#include "compat.h" +#include "../common/abi_align.h" +#include "../compat/compat.h" #include #include @@ -61,7 +61,7 @@ // A paranoid check that someone did not define a wrong SIZEOF_OFF_T at configure time. typedef unsigned char MPG123_STATIC_ASSERT[(SIZEOF_OFF_T == sizeof(off_t)) ? 1 : -1]; -#include "debug.h" +#include "../common/debug.h" // We do not want to expose this publicly, but it is cleaner to have it also defined // as portable API to offer the legacy function wrapper over. It's an undocumented diff --git a/src/libmpg123/libmpg123.c b/src/libmpg123/libmpg123.c index 71908146..67920643 100644 --- a/src/libmpg123/libmpg123.c +++ b/src/libmpg123/libmpg123.c @@ -7,19 +7,19 @@ */ #include "mpg123lib_intern.h" -#include "version.h" +#include "../version.h" #include "icy2utf8.h" #include "gapless.h" /* Want accurate rounding function regardless of decoder setup. */ #define FORCE_ACCURATE -#include "sample.h" +#include "../common/sample.h" #include "parse.h" #ifndef PORTABLE_API #include "lfs_wrap.h" #endif -#include "debug.h" +#include "../common/debug.h" #define SEEKFRAME(mh) ((mh)->ignoreframe < 0 ? 0 : (mh)->ignoreframe) diff --git a/src/libmpg123/mpg123lib_intern.h b/src/libmpg123/mpg123lib_intern.h index cc2369f7..2ca416d6 100644 --- a/src/libmpg123/mpg123lib_intern.h +++ b/src/libmpg123/mpg123lib_intern.h @@ -15,9 +15,9 @@ #include "config.h" /* Load this before _anything_ */ -#include "abi_align.h" +#include "../common/abi_align.h" -#include "compat.h" +#include "../compat/compat.h" // Only portable API plays a role in the library itself, outside of lfs_wrap.c. // Also, we need to ensure no suffix renaming for the primary implementations. @@ -278,7 +278,7 @@ static inline int32_t scale_rounded(int32_t x, int shift) now: factor on minimum frame buffer size (which takes upsampling into account) */ #define AUDIOBUFSIZE 2 -#include "true.h" +#include "../common/true.h" #define MAX_NAME_SIZE 81 #define SBLIMIT 32 diff --git a/src/libmpg123/ntom.c b/src/libmpg123/ntom.c index 1fb4c019..4d24ec27 100644 --- a/src/libmpg123/ntom.c +++ b/src/libmpg123/ntom.c @@ -8,7 +8,7 @@ #define SAFE_NTOM /* Do not depend on int64_t*int64_t with big values still being in the range... */ #include "mpg123lib_intern.h" -#include "debug.h" +#include "../common/debug.h" int INT123_synth_ntom_set_step(mpg123_handle *fr) { diff --git a/src/libmpg123/optimize.c b/src/libmpg123/optimize.c index 2478bef6..1d8232b0 100644 --- a/src/libmpg123/optimize.c +++ b/src/libmpg123/optimize.c @@ -12,7 +12,7 @@ #define WANT_GETCPUFLAGS #include "mpg123lib_intern.h" /* includes optimize.h */ #include "getcpuflags.h" -#include "debug.h" +#include "../common/debug.h" /* Ugly macros to build conditional synth function array values. */ diff --git a/src/libmpg123/parse.c b/src/libmpg123/parse.c index 98a49ebe..1a9d76c3 100644 --- a/src/libmpg123/parse.c +++ b/src/libmpg123/parse.c @@ -30,7 +30,7 @@ #include "mpeghead.h" -#include "debug.h" +#include "../common/debug.h" #define bsbufid(fr) (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) ) diff --git a/src/libmpg123/readers.c b/src/libmpg123/readers.c index 1c158567..9a0831e3 100644 --- a/src/libmpg123/readers.c +++ b/src/libmpg123/readers.c @@ -11,7 +11,7 @@ #include "mpg123lib_intern.h" -#include "debug.h" +#include "../common/debug.h" static int stream_init(mpg123_handle *fr); static int64_t get_fileinfo(mpg123_handle *); diff --git a/src/libmpg123/stringbuf.c b/src/libmpg123/stringbuf.c index cc00878a..590ee4a6 100644 --- a/src/libmpg123/stringbuf.c +++ b/src/libmpg123/stringbuf.c @@ -10,9 +10,9 @@ #include "mpg123lib_intern.h" #include "config.h" #include "mpg123.h" -#include "compat.h" +#include "../compat/compat.h" #include -#include "debug.h" +#include "../common/debug.h" mpg123_string* attribute_align_arg mpg123_new_string(const char *val) { diff --git a/src/libmpg123/synth.c b/src/libmpg123/synth.c index e6817005..2b22bbc3 100644 --- a/src/libmpg123/synth.c +++ b/src/libmpg123/synth.c @@ -10,8 +10,8 @@ #ifdef OPT_GENERIC_DITHER #define FORCE_ACCURATE #endif -#include "sample.h" -#include "debug.h" +#include "../common/sample.h" +#include "../common/debug.h" /* Part 1: All synth functions that produce signed short. diff --git a/src/libmpg123/synth_8bit.c b/src/libmpg123/synth_8bit.c index 966aa17b..ee7614d0 100644 --- a/src/libmpg123/synth_8bit.c +++ b/src/libmpg123/synth_8bit.c @@ -7,8 +7,8 @@ */ #include "mpg123lib_intern.h" -#include "sample.h" -#include "debug.h" +#include "../common/sample.h" +#include "../common/debug.h" /* Part 2: All synth functions that produce 8bit output. diff --git a/src/libmpg123/synth_real.c b/src/libmpg123/synth_real.c index 703e4fac..cc8bd7d6 100644 --- a/src/libmpg123/synth_real.c +++ b/src/libmpg123/synth_real.c @@ -7,8 +7,8 @@ */ #include "mpg123lib_intern.h" -#include "sample.h" -#include "debug.h" +#include "../common/sample.h" +#include "../common/debug.h" #ifdef REAL_IS_FIXED #error "Do not build this file with fixed point math!" diff --git a/src/libmpg123/synth_s32.c b/src/libmpg123/synth_s32.c index 4c99847f..9380ac34 100644 --- a/src/libmpg123/synth_s32.c +++ b/src/libmpg123/synth_s32.c @@ -7,8 +7,8 @@ */ #include "mpg123lib_intern.h" -#include "sample.h" -#include "debug.h" +#include "../common/sample.h" +#include "../common/debug.h" #ifdef REAL_IS_FIXED #error "Do not build this file with fixed point math!" diff --git a/src/libmpg123/system.c b/src/libmpg123/system.c index 37cbfce9..bad5d9db 100644 --- a/src/libmpg123/system.c +++ b/src/libmpg123/system.c @@ -19,8 +19,8 @@ #include #include -#include "mpg123app.h" <<<--- nope! -#include "debug.h" +#include "../mpg123app.h" <<<--- nope! +#include "../common/debug.h" static int filept; static int verbose = 1; diff --git a/src/libmpg123/tabinit.c b/src/libmpg123/tabinit.c index 00da7c12..1a31f8a8 100644 --- a/src/libmpg123/tabinit.c +++ b/src/libmpg123/tabinit.c @@ -7,7 +7,7 @@ */ #include "mpg123lib_intern.h" -#include "debug.h" +#include "../common/debug.h" // The (normally precomputed) cos tables. #include "costabs.h" diff --git a/src/libout123/buffer.c b/src/libout123/buffer.c index 3b074357..f99cd2ff 100644 --- a/src/libout123/buffer.c +++ b/src/libout123/buffer.c @@ -45,7 +45,7 @@ #endif #endif -#include "debug.h" +#include "../common/debug.h" #define BUF_CMD_OPEN XF_CMD_CUSTOM1 #define BUF_CMD_CLOSE XF_CMD_CUSTOM2 diff --git a/src/libout123/buffer.h b/src/libout123/buffer.h index 44215939..3be4b71b 100644 --- a/src/libout123/buffer.h +++ b/src/libout123/buffer.h @@ -17,7 +17,7 @@ #define _MPG123_BUFFER_H_ #include "out123_int.h" -#include "compat.h" +#include "../compat/compat.h" int INT123_buffer_init(out123_handle *ao, size_t bytes); void INT123_buffer_exit(out123_handle *ao); diff --git a/src/libout123/hextxt.c b/src/libout123/hextxt.c index 74f59e36..de7c58de 100644 --- a/src/libout123/hextxt.c +++ b/src/libout123/hextxt.c @@ -19,7 +19,7 @@ #include "out123_int.h" #include "hextxt.h" -#include "debug.h" +#include "../common/debug.h" int hex_formats(out123_handle *ao) { diff --git a/src/libout123/legacy_module.c b/src/libout123/legacy_module.c index 03354b43..5ae3aa16 100644 --- a/src/libout123/legacy_module.c +++ b/src/libout123/legacy_module.c @@ -7,7 +7,7 @@ */ #include "out123_int.h" -#include "debug.h" +#include "../common/debug.h" /* A single module is staticly compiled in for each type */ extern mpg123_module_t mpg123_output_module_info; diff --git a/src/libout123/libout123.c b/src/libout123/libout123.c index 80eaf5c0..44dd52bc 100644 --- a/src/libout123/libout123.c +++ b/src/libout123/libout123.c @@ -32,7 +32,7 @@ #endif #endif -#include "version.h" +#include "../version.h" #include "wav.h" #include "hextxt.h" #ifndef NOXFERMEM @@ -44,7 +44,7 @@ static int have_buffer(out123_handle *ao) #endif #include "stringlists.h" -#include "debug.h" +#include "../common/debug.h" const char * attribute_align_arg out123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch) { diff --git a/src/libout123/module.c b/src/libout123/module.c index 7ede2d3c..7fae87ae 100644 --- a/src/libout123/module.c +++ b/src/libout123/module.c @@ -11,11 +11,11 @@ #define _BSD_SOURCE #include "config.h" #include "stringlists.h" -#include "compat.h" +#include "../compat/compat.h" #include #include "module.h" -#include "debug.h" +#include "../common/debug.h" #ifndef USE_MODULES #error This is a build without modules. Why am I here? diff --git a/src/libout123/modules/aix.c b/src/libout123/modules/aix.c index b26b14a8..fdd8cb5c 100644 --- a/src/libout123/modules/aix.c +++ b/src/libout123/modules/aix.c @@ -23,7 +23,7 @@ #include #include -#include "debug.h" +#include "../../common/debug.h" /* use AUDIO_BSIZE to set the msec for audio buffering in Ultimedia library */ diff --git a/src/libout123/modules/alib.c b/src/libout123/modules/alib.c index 0e60f9b7..63f73954 100644 --- a/src/libout123/modules/alib.c +++ b/src/libout123/modules/alib.c @@ -44,7 +44,7 @@ #include /* /opt/audio/include */ #include /* /opt/audio/include */ -#include "debug.h" +#include "../../common/debug.h" /**************************************************************************/ diff --git a/src/libout123/modules/alsa.c b/src/libout123/modules/alsa.c index ad94d4cb..11d172aa 100644 --- a/src/libout123/modules/alsa.c +++ b/src/libout123/modules/alsa.c @@ -27,7 +27,7 @@ #include /* GCC complains about missing declaration of alloca. */ #include -#include "debug.h" +#include "../../common/debug.h" /* Total buffer size in seconds, 0.2 is more true to what ALSA maximally uses here (8192 samples). The earlier default of 0.5 was never true. */ diff --git a/src/libout123/modules/arts.c b/src/libout123/modules/arts.c index 70168499..3d3b0165 100644 --- a/src/libout123/modules/arts.c +++ b/src/libout123/modules/arts.c @@ -10,7 +10,7 @@ #include "../out123_int.h" #include -#include "debug.h" +#include "../../common/debug.h" typedef struct { diff --git a/src/libout123/modules/coreaudio.c b/src/libout123/modules/coreaudio.c index 665c9d87..a4286814 100644 --- a/src/libout123/modules/coreaudio.c +++ b/src/libout123/modules/coreaudio.c @@ -46,7 +46,7 @@ #define SFIFO_STATIC #include "../sfifo.c" -#include "debug.h" +#include "../../common/debug.h" /* Duration of the ring buffer in seconds. Is that all that there is to tunable latency? diff --git a/src/libout123/modules/dummy.c b/src/libout123/modules/dummy.c index 83caa096..8cc3ce5d 100644 --- a/src/libout123/modules/dummy.c +++ b/src/libout123/modules/dummy.c @@ -6,7 +6,7 @@ */ #include "../out123_int.h" -#include "debug.h" +#include "../../common/debug.h" static int open_dummy(out123_handle *ao) { diff --git a/src/libout123/modules/esd.c b/src/libout123/modules/esd.c index 1b80b224..b4465728 100644 --- a/src/libout123/modules/esd.c +++ b/src/libout123/modules/esd.c @@ -22,7 +22,7 @@ #include #include #endif -#include "debug.h" +#include "../../common/debug.h" static unsigned esd_rate = 0, esd_format = 0, esd_channels = 0; diff --git a/src/libout123/modules/hp.c b/src/libout123/modules/hp.c index 734ace91..464dfda6 100644 --- a/src/libout123/modules/hp.c +++ b/src/libout123/modules/hp.c @@ -9,7 +9,7 @@ #include "../out123_int.h" #include #include -#include "debug.h" +#include "../../common/debug.h" static int set_rate(out123_handle *ao) diff --git a/src/libout123/modules/jack.c b/src/libout123/modules/jack.c index f6fa6818..9616cea2 100644 --- a/src/libout123/modules/jack.c +++ b/src/libout123/modules/jack.c @@ -26,7 +26,7 @@ #include #include -#include "debug.h" +#include "../../common/debug.h" typedef struct { int alive; diff --git a/src/libout123/modules/mint.c b/src/libout123/modules/mint.c index bd607bb3..e8cf191e 100644 --- a/src/libout123/modules/mint.c +++ b/src/libout123/modules/mint.c @@ -12,7 +12,7 @@ #include #include #include -#include "debug.h" +#include "../../common/debug.h" /* Globals */ /* extern int outburst; */ diff --git a/src/libout123/modules/nas.c b/src/libout123/modules/nas.c index 2c083029..0b5737ca 100644 --- a/src/libout123/modules/nas.c +++ b/src/libout123/modules/nas.c @@ -10,7 +10,7 @@ #include #include