summaryrefslogtreecommitdiff
path: root/port
diff options
context:
space:
mode:
authorcostan <costan@google.com>2017-10-05 08:08:48 -0700
committerVictor Costan <pwnall@chromium.org>2017-10-05 12:18:49 -0700
commit25767d066ca995c055f04b78a31a6e518087e667 (patch)
treecd37add9520a935901866e3a5b9232bd4a697b9d /port
parent4a7e7f50dcf661cfffe71737650b0fb18e195d18 (diff)
downloadleveldb-25767d066ca995c055f04b78a31a6e518087e667.tar.gz
leveldb: Remove *_unlocked feature detection from POSIX port.
CL 170738066 removed all instances of fread_unlocked, fwrite_unlocked and fflush_unlocked calls from the codebase, so the feature detection can be removed as well. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171154269
Diffstat (limited to 'port')
-rw-r--r--port/port_posix.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/port/port_posix.h b/port/port_posix.h
index 2491551..1f4f6fc 100644
--- a/port/port_posix.h
+++ b/port/port_posix.h
@@ -50,15 +50,6 @@
#define PLATFORM_IS_LITTLE_ENDIAN (__BYTE_ORDER == __LITTLE_ENDIAN)
#endif
-#if defined(__APPLE__) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
- defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD) ||\
- defined(OS_ANDROID) || defined(OS_HPUX) || defined(CYGWIN)
-// Use fread/fwrite/fflush on platforms without _unlocked variants
-#define fread_unlocked fread
-#define fwrite_unlocked fwrite
-#define fflush_unlocked fflush
-#endif
-
#if defined(__APPLE__) || defined(OS_FREEBSD) ||\
defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD)
// Use fsync() on platforms without fdatasync()