diff --git a/.travis.yml b/.travis.yml index e0cf6011..e8e371a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ os: - linux - osx +osx_image: xcode10.2 + dist: xenial addons: diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std-symbols.cpp b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std-symbols.cpp index 372816f0..22a62984 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std-symbols.cpp @@ -1,4 +1,5 @@ #define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS +#define _LIBCPP_HIDE_FROM_ABI #include diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std-symbols.cpp b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std-symbols.cpp index b5cedff8..0910cdac 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std-symbols.cpp @@ -1,4 +1,5 @@ #define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS +#define _LIBCPP_HIDE_FROM_ABI #include diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std-symbols.cpp index 372816f0..22a62984 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std-symbols.cpp @@ -1,4 +1,5 @@ #define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS +#define _LIBCPP_HIDE_FROM_ABI #include diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std-symbols.cpp index 372816f0..22a62984 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std-symbols.cpp @@ -1,4 +1,5 @@ #define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS +#define _LIBCPP_HIDE_FROM_ABI #include diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std-symbols.cpp index 372816f0..22a62984 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std-symbols.cpp @@ -1,4 +1,5 @@ #define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS +#define _LIBCPP_HIDE_FROM_ABI #include diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std-symbols.cpp index b5cedff8..0910cdac 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std-symbols.cpp +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std-symbols.cpp @@ -1,4 +1,5 @@ #define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS +#define _LIBCPP_HIDE_FROM_ABI #include diff --git a/src/Generator/Passes/SymbolsCodeGenerator.cs b/src/Generator/Passes/SymbolsCodeGenerator.cs index 212ee730..3df40d41 100644 --- a/src/Generator/Passes/SymbolsCodeGenerator.cs +++ b/src/Generator/Passes/SymbolsCodeGenerator.cs @@ -21,6 +21,7 @@ namespace CppSharp.Passes public override void Process() { WriteLine("#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS"); + WriteLine("#define _LIBCPP_HIDE_FROM_ABI"); NewLine(); if (TranslationUnit.Module == Options.SystemModule)