ref: 75d81f5bb3705135a0259be0e9602820f1c6cb5c
parent: 45cbdff36f0d0c2a395326d09e4dd375601e28cb
author: Timothy B. Terriberry <[email protected]>
date: Fri Feb 20 07:44:10 EST 2015
Document how to tell if your build is fixed-point. This way we won't break this by accident.
--- a/celt/celt.c
+++ b/celt/celt.c
@@ -280,6 +280,9 @@
const char *opus_get_version_string(void)
{
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
"-fixed"
#endif
--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -714,6 +714,10 @@
/** 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
*/
OPUS_EXPORT const char *opus_get_version_string(void);