summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-10-19 20:22:58 (GMT)
committerTobias Markmann <tm@ayena.de>2014-10-20 13:49:33 (GMT)
commit6b22dfcf59474dd016a0355a3102a1dd3692d92c (patch)
tree2b1fd33be433a91e81fee84fdc2bf1b52575d934 /3rdParty/Boost/02_android_compilation_fixes.diff.old
parent38b0cb785fea8eae5e48fae56440695fdfd10ee1 (diff)
downloadswift-6b22dfcf59474dd016a0355a3102a1dd3692d92c.zip
swift-6b22dfcf59474dd016a0355a3102a1dd3692d92c.tar.bz2
Update Boost in 3rdParty to version 1.56.0.
This updates Boost in our 3rdParty directory to version 1.56.0. Updated our update.sh script to stop on error. Changed error reporting in SwiftTools/CrashReporter.cpp to SWIFT_LOG due to missing include of <iostream> with newer Boost. Change-Id: I4b35c77de951333979a524097f35f5f83d325edc
Diffstat (limited to '3rdParty/Boost/02_android_compilation_fixes.diff.old')
-rw-r--r--3rdParty/Boost/02_android_compilation_fixes.diff.old36
1 files changed, 36 insertions, 0 deletions
diff --git a/3rdParty/Boost/02_android_compilation_fixes.diff.old b/3rdParty/Boost/02_android_compilation_fixes.diff.old
new file mode 100644
index 0000000..bb991fd
--- /dev/null
+++ b/3rdParty/Boost/02_android_compilation_fixes.diff.old
@@ -0,0 +1,36 @@
+diff --git a/3rdParty/Boost/src/boost/detail/endian.hpp b/3rdParty/Boost/src/boost/detail/endian.hpp
+index 98c870c..ac77a2e 100644
+--- a/3rdParty/Boost/src/boost/predef/other/endian.h
++++ b/3rdParty/Boost/src/boost/predef/other/endian.h
+@@ -66,8 +66,8 @@
+ || defined(_M_ALPHA) || defined(__amd64) \
+ || defined(__amd64__) || defined(_M_AMD64) \
+ || defined(__x86_64) || defined(__x86_64__) \
+- || defined(_M_X64) || defined(__bfin__)
+-
++ || defined(_M_X64) || defined(__bfin__) \
++ || defined(ANDROID)
+ # define BOOST_LITTLE_ENDIAN
+ # define BOOST_BYTE_ORDER 1234
+ #else
+diff --git a/3rdParty/Boost/src/libs/filesystem/src/operations.cpp b/3rdParty/Boost/src/libs/filesystem/src/operations.cpp
+index 16a336f..d066e40 100644
+--- a/3rdParty/Boost/src/libs/filesystem/src/operations.cpp
++++ b/3rdParty/Boost/src/libs/filesystem/src/operations.cpp
+@@ -73,10 +73,14 @@ using std::wstring;
+ const fs::path dot_dot_path("..");
+ # include <sys/types.h>
+ # include <sys/stat.h>
+-# if !defined(__APPLE__) && !defined(__OpenBSD__)
++# if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(ANDROID)
+ # include <sys/statvfs.h>
+ # define BOOST_STATVFS statvfs
+ # define BOOST_STATVFS_F_FRSIZE vfs.f_frsize
++# elif defined (ANDROID)
++# include <sys/vfs.h>
++# define BOOST_STATVFS statfs
++# define BOOST_STATVFS_F_FRSIZE static_cast<boost::uintmax_t>(vfs.f_bsize)
+ # else
+ # ifdef __OpenBSD__
+ # include <sys/param.h>
+ -- \ No newline at end of file