Allow undefined LZ4_MAX_INPUT_SIZE
[folly.git] / folly / Malloc.cpp
index 5f7144dd81007df801446e447c53b0aa08c08ed4..d81c30d23119ed26637c6f6e1d586b8b321c622f 100644 (file)
@@ -14,7 +14,9 @@
  * limitations under the License.
  */
 
-#include "folly/Malloc.h"
+#include <folly/Malloc.h>
+
+#include <cstdint>
 
 namespace folly {
 
@@ -27,7 +29,7 @@ bool usingJEMallocSlow() {
   // Some platforms (*cough* OSX *cough*) require weak symbol checks to be
   // in the form if (mallctl != NULL). Not if (mallctl) or if (!mallctl) (!!).
   // http://goo.gl/xpmctm
-  if (allocm == NULL || rallocm == NULL || mallctl == NULL) {
+  if (allocm == nullptr || rallocm == nullptr || mallctl == nullptr) {
     return false;
   }