瀏覽代碼

leveldb: Minor cleanup in ports.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=240619768
pull/1/head
costan 5 年之前
committed by Chris Mumford
父節點
當前提交
da94ac67e9
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. +4
    -3
      port/port_stdcxx.h

+ 4
- 3
port/port_stdcxx.h 查看文件

@ -29,12 +29,13 @@
#include <snappy.h>
#endif // HAVE_SNAPPY
#include <stddef.h>
#include <stdint.h>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <condition_variable> // NOLINT
#include <mutex> // NOLINT
#include <string>
#include "port/thread_annotations.h"
namespace leveldb {
@ -84,7 +85,7 @@ class CondVar {
};
inline bool Snappy_Compress(const char* input, size_t length,
::std::string* output) {
std::string* output) {
#if HAVE_SNAPPY
output->resize(snappy::MaxCompressedLength(length));
size_t outlen;

Loading…
取消
儲存