diff --git a/mfbt/double-conversion/add-mfbt-api-markers.patch b/mfbt/double-conversion/add-mfbt-api-markers.patch index d3cb1daa8747..b98ec744e9fb 100644 --- a/mfbt/double-conversion/add-mfbt-api-markers.patch +++ b/mfbt/double-conversion/add-mfbt-api-markers.patch @@ -19,21 +19,6 @@ index f98edae..e536a01 100644 // Computes the shortest string of digits that correctly represent the input // number. Depending on decimal_in_shortest_low and decimal_in_shortest_high -@@ -154,12 +155,12 @@ class DoubleToStringConverter { - // Returns true if the conversion succeeds. The conversion always succeeds - // except when the input value is special and no infinity_symbol or - // nan_symbol has been given to the constructor. -- bool ToShortest(double value, StringBuilder* result_builder) const { -+ MFBT_API(bool) ToShortest(double value, StringBuilder* result_builder) const { - return ToShortestIeeeNumber(value, result_builder, SHORTEST); - } - - // Same as ToShortest, but for single-precision floats. -- bool ToShortestSingle(float value, StringBuilder* result_builder) const { -+ MFBT_API(bool) ToShortestSingle(float value, StringBuilder* result_builder) const { - return ToShortestIeeeNumber(value, result_builder, SHORTEST_SINGLE); - } - @@ -197,7 +198,7 @@ class DoubleToStringConverter { // The last two conditions imply that the result will never contain more than // 1 + kMaxFixedDigitsBeforePoint + 1 + kMaxFixedDigitsAfterPoint characters diff --git a/mfbt/double-conversion/double-conversion.h b/mfbt/double-conversion/double-conversion.h index 3401c1e9c7aa..0e7226da80f6 100644 --- a/mfbt/double-conversion/double-conversion.h +++ b/mfbt/double-conversion/double-conversion.h @@ -155,12 +155,12 @@ class DoubleToStringConverter { // Returns true if the conversion succeeds. The conversion always succeeds // except when the input value is special and no infinity_symbol or // nan_symbol has been given to the constructor. - MFBT_API(bool) ToShortest(double value, StringBuilder* result_builder) const { + bool ToShortest(double value, StringBuilder* result_builder) const { return ToShortestIeeeNumber(value, result_builder, SHORTEST); } // Same as ToShortest, but for single-precision floats. - MFBT_API(bool) ToShortestSingle(float value, StringBuilder* result_builder) const { + bool ToShortestSingle(float value, StringBuilder* result_builder) const { return ToShortestIeeeNumber(value, result_builder, SHORTEST_SINGLE); } diff --git a/mfbt/double-conversion/update.sh b/mfbt/double-conversion/update.sh index 5f56df9cc838..3630ab7292b3 100755 --- a/mfbt/double-conversion/update.sh +++ b/mfbt/double-conversion/update.sh @@ -13,4 +13,4 @@ cp $1/src/*.h ./ cp $1/src/*.cc ./ patch -p3 < add-mfbt-api-markers.patch -patch -p3 < useStandardInteger.patch +patch -p3 < use-StandardInteger.patch