]> sigrok.org Git - sigrok-util.git/blob - cross-compile/android/boost_wchar.patch
sigrok-native-appimage: Bump upstream files in contrib/.
[sigrok-util.git] / cross-compile / android / boost_wchar.patch
1 --- boost/config/platform/linux.hpp.orig        2016-12-03 12:31:10.512815722 +0100
2 +++ boost/config/platform/linux.hpp     2016-12-03 12:31:58.180223676 +0100
3 @@ -102,4 +102,7 @@
4  #  endif
5  #endif
6  
7 +#ifdef __ANDROID__
8 +#define BOOST_NO_CWCHAR
9 +#endif
10  
11 --- boost/integer_traits.hpp.orig       2016-12-03 14:22:08.001314430 +0100
12 +++ boost/integer_traits.hpp    2016-12-03 14:22:19.582412591 +0100
13 @@ -23,7 +23,7 @@
14  #include <limits.h>
15  // we need wchar.h for WCHAR_MAX/MIN but not all platforms provide it,
16  // and some may have <wchar.h> but not <cwchar> ...
17 -#if !defined(BOOST_NO_INTRINSIC_WCHAR_T) && (!defined(BOOST_NO_CWCHAR) || defined(sun) || defined(__sun) || defined(__QNX__))
18 +#if !defined(BOOST_NO_INTRINSIC_WCHAR_T) && (!defined(BOOST_NO_CWCHAR) || defined(sun) || defined(__sun) || defined(__QNX__) || defined(__ANDROID__))
19  #include <wchar.h>
20  #endif
21  
22 --- libs/serialization/build/Jamfile.v2.orig    2016-12-03 13:29:51.821334991 +0100
23 +++ libs/serialization/build/Jamfile.v2 2016-12-03 13:30:21.457586514 +0100
24 @@ -103,12 +103,13 @@
25      <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
26      ;
27  
28 -lib boost_wserialization 
29 -    : $(WSOURCES).cpp boost_serialization 
30 -    :     
31 -    <toolset>msvc:<cxxflags>/Gy 
32 -    #<toolset>gcc:<cxxflags>"-fvisibility=hidden"
33 -    <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
34 -    ;
35 -
36 -boost-install boost_serialization boost_wserialization ;
37 +# lib boost_wserialization 
38 +#     : $(WSOURCES).cpp boost_serialization 
39 +#     :     
40 +#     <toolset>msvc:<cxxflags>/Gy 
41 +#     #<toolset>gcc:<cxxflags>"-fvisibility=hidden"
42 +#     <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
43 +#     ;
44 +#
45 +# boost-install boost_serialization boost_wserialization ;
46 +boost-install boost_serialization ;