File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,16 @@ case "$TARGET_OS" in
131131 # man ld: +h internal_name
132132 PLATFORM_SHARED_LDFLAGS=" -shared -Wl,+h -Wl,"
133133 ;;
134+ OS_WINDOWS_CROSSCOMPILE | NATIVE_WINDOWS)
135+ PLATFORM=OS_WINDOWS
136+ COMMON_FLAGS=" -fno-builtin-memcmp -D_REENTRANT -DOS_WINDOWS -DLEVELDB_PLATFORM_WINDOWS"
137+ PLATFORM_SHARED_CFLAGS=" "
138+ PLATFORM_SOURCES=" util/env_win.cc"
139+ PLATFORM_CXXFLAGS=" -std=c++0x"
140+ PLATFORM_LIBS=" -lshlwapi -ldbghelp"
141+ PORT_FILE=port/port_win.cc
142+ CROSS_COMPILE=true
143+ ;;
134144 * )
135145 echo " Unknown platform!" >&2
136146 exit 1
Original file line number Diff line number Diff line change 11// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file. See the AUTHORS file for names of contributors.
4+ #if !defined(LEVELDB_PLATFORM_WINDOWS)
45
56#include < deque>
67#include < set>
@@ -696,3 +697,5 @@ Env* Env::Default() {
696697}
697698
698699} // namespace leveldb
700+
701+ #endif
You can’t perform that action at this time.
0 commit comments