@ -8,7 +8,7 @@
# define STORAGE_LEVELDB_PORT_PORT_POSIX_H_
# define STORAGE_LEVELDB_PORT_PORT_POSIX_H_
# undef PLATFORM_IS_LITTLE_ENDIAN
# undef PLATFORM_IS_LITTLE_ENDIAN
# if defined(OS_MACOSX )
# if defined(__APPLE__ )
# include <machine/endian.h>
# include <machine/endian.h>
# if defined(__DARWIN_LITTLE_ENDIAN) && defined(__DARWIN_BYTE_ORDER)
# if defined(__DARWIN_LITTLE_ENDIAN) && defined(__DARWIN_BYTE_ORDER)
# define PLATFORM_IS_LITTLE_ENDIAN \
# define PLATFORM_IS_LITTLE_ENDIAN \
@ -50,7 +50,7 @@
# define PLATFORM_IS_LITTLE_ENDIAN (__BYTE_ORDER == __LITTLE_ENDIAN)
# define PLATFORM_IS_LITTLE_ENDIAN (__BYTE_ORDER == __LITTLE_ENDIAN)
# endif
# endif
# if defined(OS_MACOSX ) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
# if defined(__APPLE__ ) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
defined ( OS_NETBSD ) | | defined ( OS_OPENBSD ) | | defined ( OS_DRAGONFLYBSD ) | | \
defined ( OS_NETBSD ) | | defined ( OS_OPENBSD ) | | defined ( OS_DRAGONFLYBSD ) | | \
defined ( OS_ANDROID ) | | defined ( OS_HPUX ) | | defined ( CYGWIN )
defined ( OS_ANDROID ) | | defined ( OS_HPUX ) | | defined ( CYGWIN )
/ / Use fread / fwrite / fflush on platforms without _unlocked variants
/ / Use fread / fwrite / fflush on platforms without _unlocked variants
@ -59,7 +59,7 @@
# define fflush_unlocked fflush
# define fflush_unlocked fflush
# endif
# endif
# if defined(OS_MACOSX ) || defined(OS_FREEBSD) ||\
# if defined(__APPLE__ ) || defined(OS_FREEBSD) ||\
defined ( OS_OPENBSD ) | | defined ( OS_DRAGONFLYBSD )
defined ( OS_OPENBSD ) | | defined ( OS_DRAGONFLYBSD )
/ / Use fsync ( ) on platforms without fdatasync ( )
/ / Use fsync ( ) on platforms without fdatasync ( )
# define fdatasync fsync
# define fdatasync fsync