Bug 946127 - Don't mark inline function as dllimport. r=Waldo
authorJacek Caban <jacek@codeweavers.com>
Thu, 05 Dec 2013 10:55:52 +0100
changeset 173607 06102544b4ca6d8ae27ba7c210b85a62ea9517a3
parent 173606 f56bfb99d97156c215fb25ef344e9860f96e9d43
child 173608 70d4fcbcd68afde3c93b2def392095d7c1438c61
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs946127
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 946127 - Don't mark inline function as dllimport. r=Waldo
mfbt/Compression.h
--- a/mfbt/Compression.h
+++ b/mfbt/Compression.h
@@ -96,17 +96,17 @@ public:
     Provides the maximum size that LZ4 may output in a "worst case"
     scenario (input data not compressible) primarily useful for memory
     allocation of output buffer.
     note : this function is limited by "int" range (2^31-1)
 
     @param inputSize is the input size. Max supported value is ~1.9GB
     @return maximum output size in a "worst case" scenario
   */
-  static MFBT_API size_t maxCompressedSize(size_t inputSize)
+  static inline size_t maxCompressedSize(size_t inputSize)
   {
       size_t max = ((inputSize) + ((inputSize)/255) + 16);
       MOZ_ASSERT(max > inputSize);
       return max;
   }
 
 };