mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #1949 - Part 2: Disable exceptions in soundtouch's STTypes.h.
I don't know how Mozilla was able to build this without defining ST_NO_EXCEPTION_HANDLING, but looks like we have to do it so that the compiler doesn't complain about -fno-exceptions
This commit is contained in:
parent
e98c7b8f67
commit
f170360d10
3 changed files with 15 additions and 1 deletions
13
media/libsoundtouch/mcp-disableexceptions.patch
Normal file
13
media/libsoundtouch/mcp-disableexceptions.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff -u /src/STTypes.h /src/STTypes.h
|
||||
--- /src/STTypes.h
|
||||
+++ /src/STTypes.h
|
||||
@@ -174,7 +174,7 @@
|
||||
}
|
||||
|
||||
// define ST_NO_EXCEPTION_HANDLING switch to disable throwing std exceptions:
|
||||
-// #define ST_NO_EXCEPTION_HANDLING 1
|
||||
+#define ST_NO_EXCEPTION_HANDLING 1
|
||||
#ifdef ST_NO_EXCEPTION_HANDLING
|
||||
// Exceptions disabled. Throw asserts instead if enabled.
|
||||
#include <assert.h>
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ namespace soundtouch
|
|||
}
|
||||
|
||||
// define ST_NO_EXCEPTION_HANDLING switch to disable throwing std exceptions:
|
||||
// #define ST_NO_EXCEPTION_HANDLING 1
|
||||
#define ST_NO_EXCEPTION_HANDLING 1
|
||||
#ifdef ST_NO_EXCEPTION_HANDLING
|
||||
// Exceptions disabled. Throw asserts instead if enabled.
|
||||
#include <assert.h>
|
||||
|
|
|
|||
|
|
@ -43,5 +43,6 @@ done
|
|||
|
||||
# Patch the imported files.
|
||||
patch -p1 < moz-libsoundtouch.patch
|
||||
patch -p1 < mcp-disableexceptions.patch
|
||||
|
||||
echo "Remember to update README_MCP with the version details."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue