mirror of
https://github.com/xiph/opus.git
synced 2025-06-05 23:10:54 +00:00
Document how to tell if your build is fixed-point.
This way we won't break this by accident.
This commit is contained in:
parent
45cbdff36f
commit
75d81f5bb3
2 changed files with 7 additions and 0 deletions
|
@ -280,6 +280,9 @@ const char *opus_strerror(int error)
|
||||||
const char *opus_get_version_string(void)
|
const char *opus_get_version_string(void)
|
||||||
{
|
{
|
||||||
return "libopus " PACKAGE_VERSION
|
return "libopus " PACKAGE_VERSION
|
||||||
|
/* Applications may rely on the presence of this substring in the version
|
||||||
|
string to determine if they have a fixed-point or floating-point build
|
||||||
|
at runtime. */
|
||||||
#ifdef FIXED_POINT
|
#ifdef FIXED_POINT
|
||||||
"-fixed"
|
"-fixed"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -713,6 +713,10 @@ extern "C" {
|
||||||
OPUS_EXPORT const char *opus_strerror(int error);
|
OPUS_EXPORT const char *opus_strerror(int error);
|
||||||
|
|
||||||
/** Gets the libopus version string.
|
/** Gets the libopus version string.
|
||||||
|
*
|
||||||
|
* Applications may look for the substring "-fixed" in the version string to
|
||||||
|
* determine whether they have a fixed-point or floating-point build at
|
||||||
|
* runtime.
|
||||||
*
|
*
|
||||||
* @returns Version string
|
* @returns Version string
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue