浏览代码

[leveldb] Specifically export the WriteBatch::Handler inner class for Windows link

Windows linking visibility in shared libraries requires that inner classes are
specifically exported as visible, even if the containing class is exported.

PiperOrigin-RevId: 244886019
xry
leveldb Team 5 年前
committed by Victor Costan
父节点
当前提交
3dc9202f78
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/leveldb/write_batch.h

+ 1
- 1
include/leveldb/write_batch.h 查看文件

@ -62,7 +62,7 @@ class LEVELDB_EXPORT WriteBatch {
void Append(const WriteBatch& source);
// Support for iterating over the contents of a batch.
class Handler {
class LEVELDB_EXPORT Handler {
public:
virtual ~Handler();
virtual void Put(const Slice& key, const Slice& value) = 0;

正在加载...
取消
保存