Partly fixed Linux build
This was SVN commit r6166.
This commit is contained in:
parent
1c610fd8b0
commit
58c3b031d6
@ -464,7 +464,7 @@ function setup_all_libs ()
|
||||
end
|
||||
|
||||
-- runtime-library-specific
|
||||
if target == "gnu" then
|
||||
if options["target"] == "gnu" then
|
||||
tinsert(source_dirs, "lib/sysdep/rtl/gcc");
|
||||
else
|
||||
tinsert(source_dirs, "lib/sysdep/rtl/msc");
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
// deallocate storage of elements that have been destroyed
|
||||
void deallocate(pointer p, size_type num)
|
||||
{
|
||||
_mm_free((void*)p);
|
||||
rtl_FreeAligned((void*)p);
|
||||
}
|
||||
|
||||
void construct(pointer p, const T& value)
|
||||
|
@ -0,0 +1,18 @@
|
||||
#include "precompiled.h"
|
||||
#include "lib/sysdep/rtl.h"
|
||||
|
||||
void* rtl_AllocateAligned(size_t size, size_t alignment)
|
||||
{
|
||||
void *ptr;
|
||||
int ret = posix_memalign(&ptr, size, alignment);
|
||||
if (ret) {
|
||||
// TODO: report error?
|
||||
return NULL;
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void rtl_FreeAligned(void* alignedPointer)
|
||||
{
|
||||
free(alignedPointer);
|
||||
}
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include <xercesc/sax/InputSource.hpp>
|
||||
#include <xercesc/sax/EntityResolver.hpp>
|
||||
#include <xercesc/sax/Locator.hpp>
|
||||
#include <xercesc/util/BinMemInputStream.hpp>
|
||||
|
||||
#include <xercesc/sax/SAXParseException.hpp>
|
||||
@ -43,6 +44,7 @@
|
||||
// be fairly easy to swap Xerces for something else (if desired)
|
||||
#include <xercesc/sax2/XMLReaderFactory.hpp>
|
||||
#include <xercesc/sax2/DefaultHandler.hpp>
|
||||
#include <xercesc/sax2/Attributes.hpp>
|
||||
|
||||
|
||||
#if MSC_VERSION
|
||||
|
Loading…
Reference in New Issue
Block a user