Defend against inclusion of windows.h in tests that invoke

Env::DeleteFile.

PiperOrigin-RevId: 283607548
This commit is contained in:
leveldb Team
2019-12-03 13:15:21 -08:00
committed by Victor Costan
parent 58a89bbcb2
commit d152b23f3b
6 changed files with 30 additions and 0 deletions

View File

@@ -13,6 +13,11 @@
#include "leveldb/env.h"
#include "util/testutil.h"
#if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#undef DeleteFile
#endif
namespace leveldb {
class MemEnvTest : public testing::Test {