Updated boost libraries

This commit is contained in:
Sergii Pylypenko
2014-10-11 05:49:49 +03:00
parent 3e4de48d10
commit 6195eef526
15 changed files with 7 additions and 15 deletions

View File

@@ -31,7 +31,7 @@
// GNU libc offers the helpful header <endian.h> which defines // GNU libc offers the helpful header <endian.h> which defines
// __BYTE_ORDER // __BYTE_ORDER
#if defined (__GLIBC__) || defined(ANDROID) #if defined (__GLIBC__) || defined(ANDROID) || defined(__ANDROID__)
# include <endian.h> # include <endian.h>
# if (__BYTE_ORDER == __LITTLE_ENDIAN) # if (__BYTE_ORDER == __LITTLE_ENDIAN)
# define BOOST_LITTLE_ENDIAN # define BOOST_LITTLE_ENDIAN

View File

@@ -54,7 +54,7 @@
#endif #endif
//Check for XSI shared memory objects. They are available in nearly all UNIX platforms //Check for XSI shared memory objects. They are available in nearly all UNIX platforms
#if !defined(__QNXNTO__) /*&& !defined(ANDROID)*/ #if !defined(__QNXNTO__) && !defined(ANDROID) && !defined(__ANDROID__)
#define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS #define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_OBJECTS
#endif #endif

View File

@@ -16,10 +16,6 @@
#include <cstdlib> // For std::size_t #include <cstdlib> // For std::size_t
#include <new> // For placement new #include <new> // For placement new
#ifdef ANDROID
#include <android/log.h>
#endif
// On MSVC, disable "conditional expression is constant" warning (level 4). // On MSVC, disable "conditional expression is constant" warning (level 4).
// This warning is almost impossible to avoid with certain types of templated code // This warning is almost impossible to avoid with certain types of templated code
#ifdef _MSC_VER #ifdef _MSC_VER
@@ -603,8 +599,7 @@ namespace boost { namespace property_tree { namespace detail {namespace rapidxml
// Setup new pool in allocated memory // Setup new pool in allocated memory
char *pool = align(raw_memory); char *pool = align(raw_memory);
//header *new_header = reinterpret_cast<header *>(pool); header *new_header = reinterpret_cast<header *>(pool);
header *new_header = (header *)((void*)pool);
new_header->previous_begin = m_begin; new_header->previous_begin = m_begin;
m_begin = raw_memory; m_begin = raw_memory;
m_ptr = pool + sizeof(header); m_ptr = pool + sizeof(header);

View File

@@ -36,12 +36,9 @@ template<class T> struct addressof_impl
{ {
static inline T * f( T & v, long ) static inline T * f( T & v, long )
{ {
T *ptr; return reinterpret_cast<T*>(
/* return reinterpret_cast<T*>( &const_cast<char&>(reinterpret_cast<const volatile char &>(v)));
&const_cast<char&>(reinterpret_cast<const volatile char &>(v)));*/ }
ptr = (T*)(&v);
// memcpy(&ptr, &v, sizeof(T*));
return ptr; }
static inline T * f( T * v, int ) static inline T * f( T * v, int )
{ {