aboutsummaryrefslogtreecommitdiff
path: root/port/port.h
diff options
context:
space:
mode:
authorPieter Wuille <sipa@ulyssis.org>2013-08-20 14:17:45 +0200
committerPieter Wuille <sipa@ulyssis.org>2013-08-20 14:17:45 +0200
commitcb1e39f0a35cc2b36fb748c26f69cd27e0ed5332 (patch)
treedd1437e5bb46fbfe1c2bdf7a5bfbfe608761f67d /port/port.h
downloadbitcoin-cb1e39f0a35cc2b36fb748c26f69cd27e0ed5332.tar.xz
Squashed 'src/leveldb/' content from commit a02ddf9
git-subtree-dir: src/leveldb git-subtree-split: a02ddf9b14d145e88185ee209ab8b01d8826663a
Diffstat (limited to 'port/port.h')
-rw-r--r--port/port.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/port/port.h b/port/port.h
new file mode 100644
index 0000000000..4baafa8e22
--- /dev/null
+++ b/port/port.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file. See the AUTHORS file for names of contributors.
+
+#ifndef STORAGE_LEVELDB_PORT_PORT_H_
+#define STORAGE_LEVELDB_PORT_PORT_H_
+
+#include <string.h>
+
+// Include the appropriate platform specific file below. If you are
+// porting to a new platform, see "port_example.h" for documentation
+// of what the new port_<platform>.h file must provide.
+#if defined(LEVELDB_PLATFORM_POSIX)
+# include "port/port_posix.h"
+#elif defined(LEVELDB_PLATFORM_CHROMIUM)
+# include "port/port_chromium.h"
+#elif defined(LEVELDB_PLATFORM_WINDOWS)
+# include "port/port_win.h"
+#endif
+
+#endif // STORAGE_LEVELDB_PORT_PORT_H_