qemu-e2k/audio
Philippe Mathieu-Daudé 8b46d7e2dc audio: Rename coreaudio extension to use Objective-C compiler
The coreaudio library includes Objective-C declarations (using the
caret '^' symbol to declare block references [*]). When building
with a C compiler we get:

  [175/839] Compiling C object libcommon.fa.p/audio_coreaudio.c.o
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h:18,
                     from ../../audio/coreaudio.c:26:
    /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected identifier or '(' before '^' token
      162 | (^AudioObjectPropertyListenerBlock)(    UInt32                              inNumberAddresses,
          |  ^
    FAILED: libcommon.fa.p/audio_coreaudio.c.o

Rename the file to use the Objective-C default extension (.m) so
meson calls the correct compiler.

[*] https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html

Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2022-03-15 13:36:33 +01:00
..
alsaaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio_int.h audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio_legacy.c
audio_template.h audio: Log context for audio bug 2022-03-15 13:36:33 +01:00
audio_win_int.c
audio_win_int.h
audio.c audio: Log context for audio bug 2022-03-15 13:36:33 +01:00
audio.h
coreaudio.m audio: Rename coreaudio extension to use Objective-C compiler 2022-03-15 13:36:33 +01:00
dbusaudio.c
dsound_template.h
dsoundaudio.c dsoundaudio: reduce effective playback buffer size 2022-03-04 11:05:13 +01:00
jackaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
meson.build audio: Rename coreaudio extension to use Objective-C compiler 2022-03-15 13:36:33 +01:00
mixeng_template.h
mixeng.c
mixeng.h
noaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
ossaudio.c ossaudio: reduce effective playback buffer size 2022-03-04 11:05:13 +01:00
paaudio.c paaudio: fix samples vs. frames mix-up 2022-03-04 11:05:13 +01:00
rate_template.h
sdlaudio.c sdlaudio: fix samples vs. frames mix-up 2022-03-04 11:05:13 +01:00
spiceaudio.c
trace-events
trace.h
wavaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
wavcapture.c