Skip to content

Commit ac7a8e6

Browse files
committed
Fix C++ build of the PipeWire backend.
1 parent 1c5e240 commit ac7a8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/backends/pipewire/miniaudio_pipewire.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ which can then be stored in the backend state?
7676

7777

7878
#if defined(MA_LINUX)
79-
#if defined(__STDC_VERSION__) /* <-- PipeWire cannot be used with C89 mode (__STDC_VERSION__ is only defined starting with C90). */
79+
#if defined(__STDC_VERSION__) || defined(__cplusplus) /* <-- PipeWire cannot be used with C89 mode (__STDC_VERSION__ is only defined starting with C90). */
8080
#define MA_SUPPORT_PIPEWIRE
8181
#endif
8282
#endif

0 commit comments

Comments
 (0)