From 3dc9202f78a3eb30ee8c0267e4e4be2e3f986e45 Mon Sep 17 00:00:00 2001 From: leveldb Team Date: Tue, 23 Apr 2019 11:00:28 -0700 Subject: [PATCH] [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 --- include/leveldb/write_batch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/leveldb/write_batch.h b/include/leveldb/write_batch.h index 9b319f0..5380c53 100644 --- a/include/leveldb/write_batch.h +++ b/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;