File tree 2 files changed +13
-0
lines changed
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
131
131
# man ld: +h internal_name
132
132
PLATFORM_SHARED_LDFLAGS=" -shared -Wl,+h -Wl,"
133
133
;;
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
+ ;;
134
144
* )
135
145
echo " Unknown platform!" >&2
136
146
exit 1
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file. See the AUTHORS file for names of contributors.
4
+ #if !defined(LEVELDB_PLATFORM_WINDOWS)
4
5
5
6
#include < deque>
6
7
#include < set>
@@ -696,3 +697,5 @@ Env* Env::Default() {
696
697
}
697
698
698
699
} // namespace leveldb
700
+
701
+ #endif
You can’t perform that action at this time.
0 commit comments