From ffc697c54af4e08bd9bd66e1f42162bc90d3504f Mon Sep 17 00:00:00 2001 From: Samuel Gomes <47574584+a740g@users.noreply.github.com> Date: Thu, 18 Aug 2022 10:41:12 +0530 Subject: [PATCH] macOS complie error fixes --- .../c/parts/audio/conversion/src/resample.c | 5 ++ .../parts/audio/decode/mp3_mini/src/minimp3.c | 5 ++ .../c/parts/audio/decode/ogg/src/stb_vorbis.c | 5 ++ .../c/parts/audio/out/os/osx/build.command | 62 +++++++++---------- 4 files changed, 45 insertions(+), 32 deletions(-) diff --git a/internal/c/parts/audio/conversion/src/resample.c b/internal/c/parts/audio/conversion/src/resample.c index f325eeb03..b0e3e390c 100644 --- a/internal/c/parts/audio/conversion/src/resample.c +++ b/internal/c/parts/audio/conversion/src/resample.c @@ -1 +1,6 @@ // TODO: Get rid of this entire conversion directory and it's content. This is just a stub! + +int resample_c_dummy_function() +{ + return 0; +} diff --git a/internal/c/parts/audio/decode/mp3_mini/src/minimp3.c b/internal/c/parts/audio/decode/mp3_mini/src/minimp3.c index 4c760e700..af1dda4c4 100644 --- a/internal/c/parts/audio/decode/mp3_mini/src/minimp3.c +++ b/internal/c/parts/audio/decode/mp3_mini/src/minimp3.c @@ -1 +1,6 @@ // TODO: Get rid of this entire decode directory and it's content. This is just a stub! + +int minimp3_c_dummy_function() +{ + return 0; +} diff --git a/internal/c/parts/audio/decode/ogg/src/stb_vorbis.c b/internal/c/parts/audio/decode/ogg/src/stb_vorbis.c index 4c760e700..868950f0e 100644 --- a/internal/c/parts/audio/decode/ogg/src/stb_vorbis.c +++ b/internal/c/parts/audio/decode/ogg/src/stb_vorbis.c @@ -1 +1,6 @@ // TODO: Get rid of this entire decode directory and it's content. This is just a stub! + +int stb_vorbis_c_dummy_function() +{ + return 0; +} diff --git a/internal/c/parts/audio/out/os/osx/build.command b/internal/c/parts/audio/out/os/osx/build.command index ec4b5e034..44e665be9 100755 --- a/internal/c/parts/audio/out/os/osx/build.command +++ b/internal/c/parts/audio/out/os/osx/build.command @@ -1,37 +1,35 @@ cd "$(dirname "$0")" +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/common.c -o temp/common.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/control.c -o temp/control.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/dataio.c -o temp/dataio.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/effects.c -o temp/effects.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/filter.c -o temp/filter.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/format.c -o temp/format.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/hio.c -o temp/hio.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/it_load.c -o temp/it_load.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/itsex.c -o temp/itsex.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/lfo.c -o temp/lfo.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/load.c -o temp/load.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/load_helpers.c -o temp/load_helpers.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/md5.c -o temp/md5.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/memio.c -o temp/memio.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/misc.c -o temp/misc.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/mix_all.c -o temp/mix_all.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/mixer.c -o temp/mixer.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/mod_load.c -o temp/mod_load.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/period.c -o temp/period.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/player.c -o temp/player.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/read_event.c -o temp/read_event.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/s3m_load.c -o temp/s3m_load.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/sample.c -o temp/sample.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/scan.c -o temp/scan.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/smix.c -o temp/smix.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/virtual.c -o temp/virtual.o +clang -c -D LIBXMP_CORE_PLAYER -D LIBXMP_NO_PROWIZARD -D LIBXMP_NO_DEPACKERS -D BUILDING_STATIC ../../extras/libxmp-lite/xm_load.c -o temp/xm_load.o +clang++ -c ../../audio.cpp -o temp/audio.o +clang++ -c ../../miniaudio_impl.cpp -o temp/miniaudio_impl.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/common.c -o temp/common.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/control.c -o temp/control.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/dataio.c -o temp/dataio.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/effects.c -o temp/effects.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/filter.c -o temp/filter.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/format.c -o temp/format.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/hio.c -o temp/hio.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/it_load.c -o temp/it_load.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/itsex.c -o temp/itsex.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/lfo.c -o temp/lfo.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/load.c -o temp/load.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/load_helpers.c -o temp/load_helpers.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/md5.c -o temp/md5.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/memio.c -o temp/memio.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/misc.c -o temp/misc.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/mix_all.c -o temp/mix_all.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/mixer.c -o temp/mixer.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/mod_load.c -o temp/mod_load.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/period.c -o temp/period.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/player.c -o temp/player.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/read_event.c -o temp/read_event.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/s3m_load.c -o temp/s3m_load.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/sample.c -o temp/sample.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/scan.c -o temp/scan.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/smix.c -o temp/smix.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/virtual.c -o temp/virtual.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/win32.c -o temp/win32.o -clang -s -c -w -Wall -O2 -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS -DBUILDING_STATIC ../../extras/libxmp-lite/xm_load.c -o temp/xm_load.o -clang++ -c -w -Wall -O2 ../../audio.cpp -o temp/audio.o -clang++ -c -w -Wall -O2 ../../miniaudio_impl.cpp -o temp/miniaudio_impl.o - -ar rcs src.a temp/common.o temp/control.o temp/dataio.o temp/effects.o temp/filter.o temp/format.o temp/hio.o temp/it_load.o temp/itsex.o temp/lfo.o temp/load.o temp/load_helpers.o temp/md5.o temp/memio.o temp/misc.o temp/mix_all.o temp/mixer.o temp/mod_load.o temp/period.o temp/player.o temp/read_event.o temp/s3m_load.o temp/sample.o temp/scan.o temp/smix.o temp/virtual.o temp/win32.o temp/xm_load.o temp/audio.o temp/miniaudio_impl.o +ar rcs src.a temp/common.o temp/control.o temp/dataio.o temp/effects.o temp/filter.o temp/format.o temp/hio.o temp/it_load.o temp/itsex.o temp/lfo.o temp/load.o temp/load_helpers.o temp/md5.o temp/memio.o temp/misc.o temp/mix_all.o temp/mixer.o temp/mod_load.o temp/period.o temp/player.o temp/read_event.o temp/s3m_load.o temp/sample.o temp/scan.o temp/smix.o temp/virtual.o temp/xm_load.o temp/audio.o temp/miniaudio_impl.o echo "Press any key to continue..." Pause()