summaryrefslogtreecommitdiff
path: root/port/port.h
diff options
context:
space:
mode:
authorgabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529>2011-06-29 00:30:50 +0000
committergabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529>2011-06-29 00:30:50 +0000
commitf57e23351f416d15cb6dc2905f2abade5a632fc3 (patch)
tree695abad99252bbfe5fcf0d04f6d85b5759fc4927 /port/port.h
parente0cbd242cb3fe6b1b0ed5756fd0a2e3f5efdabd0 (diff)
downloadleveldb-f57e23351f416d15cb6dc2905f2abade5a632fc3.tar.gz
Platform detection during build, plus compatibility patches for machines without <cstdatomic>.
This revision adds two major changes: 1. build_detect_platform which generates build_config.mk with platform-dependent flags for the build process 2. /port/atomic_pointer.h with anAtomicPointerimplementation for platforms without <cstdatomic> Some of this code is loosely based on patches submitted to the LevelDB mailing list at https://groups.google.com/forum/#!forum/leveldb Tip of the hat to Dave Smith and Edouard A, who both sent patches. The presence of Snappy (http://code.google.com/p/snappy/) and cstdatomic are now both detected in the build_detect_platform script (1.) which gets executing during make. For (2.), instead of broadly importing atomicops_* from Chromium or the Google performance tools, we chose to just implement AtomicPointer and the limited atomic load and store operations it needs. This resulted in much less code and fewer files - everything is contained in atomic_pointer.h. git-svn-id: https://leveldb.googlecode.com/svn/trunk@34 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'port/port.h')
-rw-r--r--port/port.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/port/port.h b/port/port.h
index e35db23..816826b 100644
--- a/port/port.h
+++ b/port/port.h
@@ -16,8 +16,6 @@
# include "port/port_chromium.h"
#elif defined(LEVELDB_PLATFORM_ANDROID)
# include "port/port_android.h"
-#elif defined(LEVELDB_PLATFORM_OSX)
-# include "port/port_osx.h"
#endif
#endif // STORAGE_LEVELDB_PORT_PORT_H_