From caa216c290d1717312dfdacce73e98756b6d532a Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Thu, 28 Feb 2013 23:01:29 +0200 Subject: [PATCH] Fix reading of host-endian VMAs. --- include/library/memoryspace.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/library/memoryspace.hpp b/include/library/memoryspace.hpp index 284a2257..c3723dc7 100644 --- a/include/library/memoryspace.hpp +++ b/include/library/memoryspace.hpp @@ -111,15 +111,15 @@ public: /** * Get system endianess. */ -#if DISABLE_FAST_MEMORY && (defined(__i386__) || defined(__x86_64__)) +#if (defined(__i386__) || defined(__x86_64__)) static int get_system_endian() throw() { return -1; } #else - static int get_system_endian() throw() { if(!sysendian) _get_system_endian(); return sysendian; } + static int get_system_endian() throw() { if(!sysendian) sysendian = _get_system_endian(); return sysendian; } #endif /** * Do native unaligned reads work? */ -#if DISABLE_FAST_MEMORY && (defined(__i386__) || defined(__x86_64__)) +#if (defined(__i386__) || defined(__x86_64__)) static int can_read_unaligned() throw() { return true; } #else static int can_read_unaligned() throw() { return false; }